-
- Downloads
Allow test sharding for e.g. Bazel test sharding feature
This greatly simplifies running Catch2 tests in single binary in parallel from external test runners. Instead of having to shard the tests by tags/test names, an external test runner can now just ask for test shard 2 (out of X), and execute that in single process, without having to know what tests are actually in the shard. Note that sharding also applies to test listing, and happens after tests were ordered according to the `--order` feature.
Showing
- docs/command-line.md 17 additions, 0 deletionsdocs/command-line.md
- src/catch2/catch_all.hpp 1 addition, 0 deletionssrc/catch2/catch_all.hpp
- src/catch2/catch_config.cpp 2 additions, 0 deletionssrc/catch2/catch_config.cpp
- src/catch2/catch_config.hpp 5 additions, 0 deletionssrc/catch2/catch_config.hpp
- src/catch2/catch_session.cpp 10 additions, 0 deletionssrc/catch2/catch_session.cpp
- src/catch2/interfaces/catch_interfaces_config.hpp 2 additions, 0 deletionssrc/catch2/interfaces/catch_interfaces_config.hpp
- src/catch2/internal/catch_commandline.cpp 15 additions, 0 deletionssrc/catch2/internal/catch_commandline.cpp
- src/catch2/internal/catch_sharding.hpp 41 additions, 0 deletionssrc/catch2/internal/catch_sharding.hpp
- src/catch2/internal/catch_test_case_registry_impl.cpp 2 additions, 1 deletionsrc/catch2/internal/catch_test_case_registry_impl.cpp
- tests/CMakeLists.txt 2 additions, 0 deletionstests/CMakeLists.txt
- tests/ExtraTests/CMakeLists.txt 16 additions, 0 deletionstests/ExtraTests/CMakeLists.txt
- tests/SelfTest/Baselines/compact.sw.approved.txt 6 additions, 0 deletionstests/SelfTest/Baselines/compact.sw.approved.txt
- tests/SelfTest/Baselines/console.std.approved.txt 1 addition, 1 deletiontests/SelfTest/Baselines/console.std.approved.txt
- tests/SelfTest/Baselines/console.sw.approved.txt 56 additions, 1 deletiontests/SelfTest/Baselines/console.sw.approved.txt
- tests/SelfTest/Baselines/junit.sw.approved.txt 4 additions, 1 deletiontests/SelfTest/Baselines/junit.sw.approved.txt
- tests/SelfTest/Baselines/sonarqube.sw.approved.txt 3 additions, 0 deletionstests/SelfTest/Baselines/sonarqube.sw.approved.txt
- tests/SelfTest/Baselines/tap.sw.approved.txt 13 additions, 1 deletiontests/SelfTest/Baselines/tap.sw.approved.txt
- tests/SelfTest/Baselines/xml.sw.approved.txt 67 additions, 1 deletiontests/SelfTest/Baselines/xml.sw.approved.txt
- tests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp 21 additions, 0 deletionstests/SelfTest/IntrospectiveTests/CmdLine.tests.cpp
- tests/SelfTest/IntrospectiveTests/Sharding.tests.cpp 41 additions, 0 deletionstests/SelfTest/IntrospectiveTests/Sharding.tests.cpp
Loading
Please register or sign in to comment