Repository navigation
Conversation
The test runner has been using Catch2 v3 for a while, so individual headers are available. Using those instead of catch_all.hpp is best practice and speeds up compilation.
|
This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested. If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos. For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping |
|
@exercism-bot @exercism-agent Test this change on a few recent student solutions with the cpp-test-runner and report any failures and changes in runtime. I'm interested in runtimes of current main, runtimes with changes of this PR, and this PR in combination with exercism/cpp-test-runner#115 |
|
@ahans I ran this on recent published community solutions to 11 exercises: two-fer, log-levels, freelancer-rates, interest-is-interesting, vehicle-purchase, space-age, complex-numbers, clock, triangle, kindergarten-garden and word-count. These include the exercises that now use the floating-point matchers, Times are for the whole
With the current runner, this PR cuts the warm median by 26%. Together with exercism/cpp-test-runner#115, the warm median drops by 41%. No solution changed its overall status or any test's status between track main and this PR, on either runner. Three solutions (all kindergarten-garden) fail on every combination. Two of them fail the same way each time: one crashes at runtime, and one is missing The third one shows different compiler output. Its header uses |
|
I think this would be better than the precompiled header. It's best practice and helps students working locally. Also, the solutions that now fail due to missing includes that before relied on transitive includes from |
The test runner has been using Catch2 v3 for a while, so individual headers are available. Using those instead of catch_all.hpp is best practice and speeds up compilation.