Closed CrustyAuklet closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 94.06%. Comparing base (
86d18cb
) to head (ade8932
).
Thanks for reporting this. We can merge this PR without the "X matching test cases", and leave that for a subsequent PR.
change default reporter to a struct with a counter variable as member. A large change that I didn't actually get to work.
This would be the correct approach. Do you want to pursue it, or would you rather I take it from here? If you want to keep at it, feel free to open a draft PR and we can provide some feedback along the way.
This would be the correct approach. Do you want to pursue it, or would you rather I take it from here? If you want to keep at it, feel free to open a draft PR and we can provide some feedback along the way.
I will open a draft PR with what I have. I think it is 95% done and I will point out where I got stuck in the PR.
My team uses Clion and while transitioning our libraries to snitch from Catch2 I noticed CLion choking on the tests. Clion has built in Catch2 support, and in the readme snitch claims to support Clion via this.
I modified the snitch main function to write the value of
argv
to a file, and saw that clion calls the test binary twice:--list-tests --order lex ~[.]
-r xml -d yes --order lex
I compared the output with the list tests command between the latest Catch2 and snitch. I copied a representation of the difference at the bottom of this description. But the key differences are:
Of these items Clion at least only seems to care about 2, 4, and 5.
Adding the test count at the end doesn't matter to Clion and would be a much larger change. I have two branches in my repo here I attempted it and it was either:
Catch2
No test listed
Snitch