Tests are in one or more source files which are then compiled and linked with the code under test and wiht the
XUnitTest library. There must also be a main() function (often in a separate source file) to run the tests, but this can be very sinple:
All of the tests linked together will be run, unlike some other frameworks it is only necessary to have the tests in a linked compilation unit, they don't have be specified explicitly or all in the same source file. However, the order in which they are run will not necessarily be predictable, as it depends on the linker. This can however be forced at runtime (
running the test) with command-line arguments.
Back to the main page