description: "Use when writing, adding, or fixing tests in the test/ directory. Covers Boost.Test conventions, registering test sources in the CMakeLists.txt of their folder, and running the v-gears-tests suite."
BOOST_TEST_DYN_LINK); the suite builds as the v-gears-tests target and is registered with CTest.test/formats/model/AFile.cpp tests src/formats/model/AFile.cpp). Follow this existing convention for placement.CMakeLists.txt of its folder, with vgears_tests() (or vgears_installer_tests() for the tests of the installer logic) — there is no globbing. A new folder also needs an add_subdirectory() in its parent.dynamic_cast, typeid) is allowed in tests even though production code avoids it.cmake --build build --target v-gears-tests -j$(nproc)
ctest --test-dir build --output-on-failure
The test binary can also be run directly from the build output directory to filter individual test cases.