Greg Christopher wrote:
Why was it incorrect? Your test case indeed did not run any assertions. This warning you can ignore safely in your case.
Well, the message says "include any assertions" not "did not run any assertions".
Good point. I guess I can change the warning message.
However the bigger issue is: How do I grep the log to see if there was an aborted test run due to setup?
You can't have it both ways. Either you want your test case to be reported as aborted or as as passed.
I guess I can look for this string "doesn't include any assertions". That seems like I'm doing it by side effect less than a more direct message that explains that the test case chose to quit because setup failed.
You can 2 options: 1. You can fail some REQUIRE level check and thus abort the test case. 2. You can detect that the test case did not run any assertions as a condition that it was aborted by fixture setup In both case I do not recommend to parse plain text output, but to switch to XML report and it's process it. Gennadiy