description: "Use when writing, adding, or fixing tests in the test/ directory. Covers Boost.Test conventions, registering test sources in test/CMakeLists.txt, 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/data/VGearsLGPArchive.cpp tests src/data/VGearsLGPArchive.cpp). Follow this existing convention for placement.SOURCE_FILES in test/CMakeLists.txt — there is no globbing.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.