This page covers how to build and run the notex_tests suite, and how to generate a coverage report from it.
GoogleTest is fetched automatically by CMake, so no manual setup is needed to run the tests. Coverage reporting additionally needs gcovr, which you can install with:
or using the package manager of your choice.
Configure the build with tests enabled:
Build:
Run the suite with CTest:
Configure the build with tests and coverage enabled:
Build the coverage target:
This builds notex_tests, runs it, and generates an HTML report with gcovr in one step.
Open the report: