Commit 7c1b0da
authored
Disable trunk listener when running under knapsack_pro:rspec_test_example_detector (#937)
`knapsack_pro:rspec_test_example_detector` instantiates all tests in a file to determine how to split by test examples ([reference](https://docs.knapsackpro.com/ruby/split-by-test-examples/)). This step is done before actually running the tests. When that happens, the RSpec reporter reports all test examples as passing, despite the fact that they're not actually run.
This change checks if the command line contains "knapsack_pro:rspec_test_example_detector", and if so, disables test collection and uploading.1 parent 101b9eb commit 7c1b0da
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
58 | 70 | | |
59 | | - | |
| 71 | + | |
| 72 | + | |
60 | 73 | | |
61 | 74 | | |
62 | 75 | | |
| |||
0 commit comments