![]() |
IRSOL
C++ code implementing socket server for interacting with Baumer camera.
|
This directory contains the test suite for the irsol
library.
The unit/
folder structure closely mirrors the organization of the main irsol
library source code.
This helps to keep tests well-organized and easy to navigate in relation to the corresponding library components.
All tests are implemented using Catch2, a modern, header-only C++ testing framework.
Catch2 provides expressive test cases, rich assertions, and powerful test organization capabilities, making it a great choice for our project.
Build and run the tests according to Development Environment Configuration instructions. The tests will automatically execute and report results using Catch2's reporting style.
Feel free to create new tests in existing test_...cpp
files, or creating new test files. If creating new test files, make sure to add them into the corresponding CMakeLists.txt
file for compilation.
The structure of a test file is:
Where:
"MyTestCaseName"
is a string describing the test you're running. Ideally this should be short and representative"[Tag1][Tag2]"
is a string with formed by 0 or more [tagname]
elements. This allows to run all testcases that are tagged with a specific tag easily via the command line.More details are to be found on the Catch2 documentation.