unittest-cpp/UnitTest++
Austin Gilbert e7b56d4e3c Introducing additional functionality to allow client code to stop a unit
test when an assert fails.

The following macro has been added:

	REQUIRE

An example of when these type of checks are useful:

    std::vector<int> v = foo();

    REQUIRE(CHECK_EQUAL(3, v.size())); // test stops here on a fail
                                       // so we don't segfault looking at
                                       // v[0] below.
    CHECK_EQUAL(1, v[0]);
    CHECK_EQUAL(2, v[1]);
    CHECK_EQUAL(3, v[2]);

Multiple checks are supported as follows:

    REQUIRE({
        CHECK_EQUAL(1, 2);
        CHECK(true);
    };

In the multiple check scenario, all the checks in the REQUIRE block will
be run. After which, if any failures were reported, the TEST case will
be stopped.

When UNITTEST_NO_EXCEPTIONS is defined, REQUIRE is a noop.
2016-02-06 09:28:48 -06:00
..
Posix Change preprocessor indent rules. 2016-01-29 22:22:37 -06:00
Win32 Change preprocessor indent rules. 2016-01-29 22:22:37 -06:00
AssertException.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
AssertException.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
CheckMacros.h Tweak preprocessor blocks. 2016-01-29 22:48:36 -06:00
Checks.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
Checks.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
CompositeTestReporter.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
CompositeTestReporter.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
Config.h Tweak preprocessor blocks. 2016-01-29 22:48:36 -06:00
CurrentTest.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
CurrentTest.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
DeferredTestReporter.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
DeferredTestReporter.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
DeferredTestResult.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
DeferredTestResult.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
ExceptionMacros.h Tweak preprocessor blocks. 2016-01-29 22:48:36 -06:00
ExecuteTest.h Change preprocessor indent rules. 2016-01-29 22:22:37 -06:00
HelperMacros.h Tweak preprocessor blocks. 2016-01-29 22:48:36 -06:00
Makefile.am [UnitTest++] Removing a spurrious UnitTest___libUnitTest___la_CPPFLAGS assignment 2015-04-07 12:48:47 -04:00
MemoryOutStream.cpp Change preprocessor indent rules. 2016-01-29 22:22:37 -06:00
MemoryOutStream.h Change preprocessor indent rules. 2016-01-29 22:22:37 -06:00
ReportAssert.cpp Tweak preprocessor blocks. 2016-01-29 22:48:36 -06:00
ReportAssert.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
ReportAssertImpl.h Tweak preprocessor blocks. 2016-01-29 22:48:36 -06:00
RequireMacros.h Introducing additional functionality to allow client code to stop a unit 2016-02-06 09:28:48 -06:00
Test.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
Test.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TestDetails.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TestDetails.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TestList.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TestList.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TestMacros.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TestReporter.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TestReporter.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TestReporterStdout.cpp Change preprocessor indent rules. 2016-01-29 22:22:37 -06:00
TestReporterStdout.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TestResults.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TestResults.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TestRunner.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TestRunner.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TestSuite.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TimeConstraint.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TimeConstraint.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
TimeHelpers.h Tweak preprocessor blocks. 2016-01-29 22:48:36 -06:00
UnitTest++.h Move src to UnitTest++ and move src/tests to tests. 2013-02-20 00:22:14 -06:00
UnitTestPP.h Introducing additional functionality to allow client code to stop a unit 2016-02-06 09:28:48 -06:00
XmlTestReporter.cpp Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00
XmlTestReporter.h Add uncrustify config and run first pass. 2016-01-29 22:15:10 -06:00