JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::UnitTestRunner::TestResult Struct Reference

Contains the results of a test. More...

#include <juce_UnitTest.h>

Collaboration diagram for juce::UnitTestRunner::TestResult:

Public Member Functions

 TestResult ()=default
 
 TestResult (const String &name, const String &subCategory)
 

Public Attributes

Time endTime
 The time at which this test ended. More...
 
int failures = 0
 The number of UnitTest::expect() calls that failed. More...
 
StringArray messages
 A list of messages describing the failed tests. More...
 
int passes = 0
 The number of UnitTest::expect() calls that succeeded. More...
 
Time startTime = Time::getCurrentTime()
 The time at which this test was started. More...
 
String subcategoryName
 The name of the current subcategory (i.e. More...
 
String unitTestName
 The main name of this test (i.e. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TestResult() [1/2]

juce::UnitTestRunner::TestResult::TestResult ( )
default

◆ TestResult() [2/2]

juce::UnitTestRunner::TestResult::TestResult ( const String name,
const String subCategory 
)
inlineexplicit

Member Data Documentation

◆ endTime

Time juce::UnitTestRunner::TestResult::endTime

The time at which this test ended.

◆ failures

int juce::UnitTestRunner::TestResult::failures = 0

The number of UnitTest::expect() calls that failed.

◆ messages

StringArray juce::UnitTestRunner::TestResult::messages

A list of messages describing the failed tests.

◆ passes

int juce::UnitTestRunner::TestResult::passes = 0

The number of UnitTest::expect() calls that succeeded.

◆ startTime

Time juce::UnitTestRunner::TestResult::startTime = Time::getCurrentTime()

The time at which this test was started.

◆ subcategoryName

String juce::UnitTestRunner::TestResult::subcategoryName

The name of the current subcategory (i.e.

the name that was set when UnitTest::beginTest() was called).

◆ unitTestName

String juce::UnitTestRunner::TestResult::unitTestName

The main name of this test (i.e.

the name of the UnitTest object being run).


The documentation for this struct was generated from the following file: