🟨 Simple testing framework used by all of the other libraries
SaneCppTesting.h is a very simple test framework that allows splitting tests in sections and record successful/failed expectations.
| Class | Description |
|---|---|
| SC::TestCase | A test case that can be split into multiple sections. |
| SC::TestReport | Collects multiple TestCase and reports their results. |
🟨 MVP
Testing library is minimal but it's useful as is for now.
Testing integrates with the SC::Result object provided by the Common fragments. So far it doesn't support test discovery and all tests must be manually invoked in the main test file.
A test case that can be split into multiple sections.
To create a test case derive from SC::TestCase and run tests in the constructor
Example:
Collects multiple TestCase and reports their results.
This is passed as argument to SC::TestCase derived classes, and contains handle to globals like a console, paths to the library and application root, path to executable etc.
🟩 Usable
🟦 Complete Features:
💡 Unplanned Features:
LOC counts exclude comments. Library counts files physically under Libraries/Testing. Single File counts SaneCppTesting.h. Standalone counts SaneCppTestingStandalone.h and intentionally includes dependency payloads.
| Metric | Header | Source | Sum |
|---|---|---|---|
| Library | 155 | 791 | 946 |
| Single File | 1178 | 1382 | 2560 |
| Standalone | 1178 | 1382 | 2560 |