|
HikoGUI
A low latency retained GUI
|
I created my own unit testing framework since I had several issues with other unit-testing frame works with testing the HikoGUI library.
Design decissions:
std::format(), std::ostream(), to_string(), .string() or .str().REQUIRE() and REQUIRE_THROW().Example test suite:
Expression may be:
==, !=, <, >, <=, >=.bool.You may escape a comparison expression by surrounding it with parentheses so that it will be interpreted as a boolean expression.
Internally ASSERT() will use the spaceship operator <=> on the left side of the expression. This is done to separate the left operand from the comparison, so that the comparison can be replaced by the unit testing framework.
By error argument may be one of the following:
error argument is given then an exact match is expected.error argument then the match is done by subtracted the operands and comparing it with the error value.test::error<> class is used then comparison is done using the error value.:------------------------— |:------------------------------— --help | List all command line arguments. --gtest_list_tests | List all the tests in the executable. --gtest_filter=<filter> | Filter the tests to be run. --gtest_output=xml:<path> | Write a JUnit XML file to <path>.
A filter contains two parts:
Both the inclusion list and exclusion lists are optional.
The glob pattern may contain: