JUCE  v5.1.1-3-g1a0b28c73
JUCE API
UnitTestRunner::TestResult Struct Reference

Contains the results of a test. More...

#include <juce_UnitTest.h>

Collaboration diagram for UnitTestRunner::TestResult:

Public Attributes

int failures
 The number of UnitTest::expect() calls that failed. More...
 
StringArray messages
 A list of messages describing the failed tests. More...
 
int passes
 The number of UnitTest::expect() calls that succeeded. 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.

Member Data Documentation

◆ failures

int UnitTestRunner::TestResult::failures

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

◆ messages

StringArray UnitTestRunner::TestResult::messages

A list of messages describing the failed tests.

◆ passes

int UnitTestRunner::TestResult::passes

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

◆ subcategoryName

String UnitTestRunner::TestResult::subcategoryName

The name of the current subcategory (i.e.

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

◆ unitTestName

String 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: