Description
The current startSkipping
/endSkipping
functionality is all about skipping asserts within the test cases. While that solution can be used for skipping test cases completely, the counter for the "skips" counts the number of skipped asserts instead of skipped test cases. This can lead to situations where the reported number of skipped tests does not match the number of test cases that were skipped.
For example, consider a test case
testFoo() {
startSkipping "Let's skip these asserts"
assertTrue "${SHUNIT_FALSE}"
assertFalse "${SHUNIT_TRUE}"
endSkipping
}
In the end of the generated report, there would be something like "OK/FAILED (skipped=X+2)" where X is the number of other assert skips. Should this test case be the only one to use skipping, the report could be interpreted to include 2 test cases that were skipped.
I would like to open a discussion on the topic. Do you see any benefits of having a skipping mechanism for individual test cases as well? If so, it would benefit from a separate counter that would be reported in the end of the test run. Furthermore, the current skipped counter could be re-used in the report to indicate how many asserts were skipped.
If this gets support, I can do the needed work to get this done.