Possible to build and run a single test?
- Dominant language
- C++
- Stars
- 21.5k
- Forks
- 3.5k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 2
Description
We have a fairly large code base with a lot of tests that are all compiled into a single test executable, which we can run through `ctest`. Once the test executable is built it is very easy to run individual tests by selecting them through `ctest` and their label. However, often we're working on a small part of the code and want to repeatedly run a single test without having to build _everything_. As a workaround we are keeping a "single-test" executable in the repository in which we can manually edit the list of test cases to compile, but this is fairly annoying to deal with because edits to this file have to be discarded and we have to be careful not to commit them to the repository. Do you have suggestions for us how to do run single tests in our large codebase more effectively?
Contributor guide
Assessment
This issue has not been assessed yet.