JUCE
|
Contains the results of a test. More...
Public Member Functions | |
TestResult ()=default | |
TestResult (const String &name, const String &subCategory) | |
Public Attributes | |
String | unitTestName |
The main name of this test (i.e. More... | |
String | subcategoryName |
The name of the current subcategory (i.e. More... | |
int | passes = 0 |
The number of UnitTest::expect() calls that succeeded. More... | |
int | failures = 0 |
The number of UnitTest::expect() calls that failed. More... | |
StringArray | messages |
A list of messages describing the failed tests. More... | |
Time | startTime = Time::getCurrentTime() |
The time at which this test was started. More... | |
Time | endTime |
The time at which this test ended. More... | |
Contains the results of a test.
One of these objects is instantiated each time UnitTest::beginTest() is called, and it contains details of the number of subsequent UnitTest::expect() calls that are made.
|
default |
String UnitTestRunner::TestResult::unitTestName |
The main name of this test (i.e.
the name of the UnitTest object being run).
String UnitTestRunner::TestResult::subcategoryName |
The name of the current subcategory (i.e.
the name that was set when UnitTest::beginTest() was called).
int UnitTestRunner::TestResult::passes = 0 |
The number of UnitTest::expect() calls that succeeded.
int UnitTestRunner::TestResult::failures = 0 |
The number of UnitTest::expect() calls that failed.
StringArray UnitTestRunner::TestResult::messages |
A list of messages describing the failed tests.
Time UnitTestRunner::TestResult::startTime = Time::getCurrentTime() |
The time at which this test was started.
Time UnitTestRunner::TestResult::endTime |
The time at which this test ended.