mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Unit tests: Added an optional argument to the UnitTest constructor to specify a category and methods to get and run unit tests in a specified category. Updated the built-in JUCE unit tests and Demo project to use categories.
This commit is contained in:
parent
1044015465
commit
6bfcd820b4
42 changed files with 129 additions and 62 deletions
|
|
@ -397,7 +397,7 @@ String OSCAddressPattern::toString() const noexcept
|
|||
class OSCAddressTests : public UnitTest
|
||||
{
|
||||
public:
|
||||
OSCAddressTests() : UnitTest ("OSCAddress class") {}
|
||||
OSCAddressTests() : UnitTest ("OSCAddress class", "OSC") {}
|
||||
|
||||
void runTest()
|
||||
{
|
||||
|
|
@ -441,7 +441,7 @@ static OSCAddressTests OSCAddressUnitTests;
|
|||
class OSCAddressPatternTests : public UnitTest
|
||||
{
|
||||
public:
|
||||
OSCAddressPatternTests() : UnitTest ("OSCAddressPattern class") {}
|
||||
OSCAddressPatternTests() : UnitTest ("OSCAddressPattern class", "OSC") {}
|
||||
|
||||
void runTest()
|
||||
{
|
||||
|
|
@ -580,7 +580,7 @@ static OSCAddressPatternTests OSCAddressPatternUnitTests;
|
|||
class OSCPatternMatcherTests : public UnitTest
|
||||
{
|
||||
public:
|
||||
OSCPatternMatcherTests() : UnitTest ("OSCAddress class / pattern matching") {}
|
||||
OSCPatternMatcherTests() : UnitTest ("OSCAddress class / pattern matching", "OSC") {}
|
||||
|
||||
void runTest()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ const MemoryBlock& OSCArgument::getBlob() const noexcept
|
|||
class OSCArgumentTests : public UnitTest
|
||||
{
|
||||
public:
|
||||
OSCArgumentTests() : UnitTest ("OSCArgument class") {}
|
||||
OSCArgumentTests() : UnitTest ("OSCArgument class", "OSC") {}
|
||||
|
||||
|
||||
MemoryBlock getMemoryBlockWithRandomData (size_t numBytes)
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ const OSCBundle& OSCBundle::Element::getBundle() const
|
|||
class OSCBundleTests : public UnitTest
|
||||
{
|
||||
public:
|
||||
OSCBundleTests() : UnitTest ("OSCBundle class") {}
|
||||
OSCBundleTests() : UnitTest ("OSCBundle class", "OSC") {}
|
||||
|
||||
void runTest()
|
||||
{
|
||||
|
|
@ -214,7 +214,7 @@ static OSCBundleTests OSCBundleUnitTests;
|
|||
class OSCBundleElementTests : public UnitTest
|
||||
{
|
||||
public:
|
||||
OSCBundleElementTests() : UnitTest ("OSCBundle::Element class") {}
|
||||
OSCBundleElementTests() : UnitTest ("OSCBundle::Element class", "OSC") {}
|
||||
|
||||
void runTest()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ void OSCMessage::addArgument (OSCArgument arg) { arguments.add (arg); }
|
|||
class OSCMessageTests : public UnitTest
|
||||
{
|
||||
public:
|
||||
OSCMessageTests() : UnitTest ("OSCMessage class") {}
|
||||
OSCMessageTests() : UnitTest ("OSCMessage class", "OSC") {}
|
||||
|
||||
void runTest()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -635,7 +635,7 @@ void OSCReceiver::registerFormatErrorHandler (FormatErrorHandler handler)
|
|||
class OSCInputStreamTests : public UnitTest
|
||||
{
|
||||
public:
|
||||
OSCInputStreamTests() : UnitTest ("OSCInputStream class") {}
|
||||
OSCInputStreamTests() : UnitTest ("OSCInputStream class", "OSC") {}
|
||||
|
||||
void runTest()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -314,7 +314,7 @@ bool OSCSender::sendToIPAddress (const String& host, int port, const OSCBundle&
|
|||
class OSCBinaryWriterTests : public UnitTest
|
||||
{
|
||||
public:
|
||||
OSCBinaryWriterTests() : UnitTest ("OSCBinaryWriter class") {}
|
||||
OSCBinaryWriterTests() : UnitTest ("OSCBinaryWriter class", "OSC") {}
|
||||
|
||||
void runTest()
|
||||
{
|
||||
|
|
@ -641,7 +641,7 @@ static OSCBinaryWriterTests OSCBinaryWriterUnitTests;
|
|||
class OSCRoundTripTests : public UnitTest
|
||||
{
|
||||
public:
|
||||
OSCRoundTripTests() : UnitTest ("OSCRoundTripTests class") {}
|
||||
OSCRoundTripTests() : UnitTest ("OSCRoundTripTests class", "OSC") {}
|
||||
|
||||
void runTest()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ bool OSCTimeTag::isImmediately() const noexcept
|
|||
class OSCTimeTagTests : public UnitTest
|
||||
{
|
||||
public:
|
||||
OSCTimeTagTests() : UnitTest ("OSCTimeTag class") {}
|
||||
OSCTimeTagTests() : UnitTest ("OSCTimeTag class", "OSC") {}
|
||||
|
||||
void runTest()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue