Menu

#44 Introduce the notion of a "skipped" test

Version 4 (Future)
open
skip test (1)
5
2015-06-06
2015-06-06
Tom Clune
No

I would like to add a capability to pFUnit for a test to be "skipped" conditionally. E.g. if a compiler is known not to support a given functionality, the test will be skipped.

To some degree this is already supported with the @test(ifdef=...) functionality. However, I would like there to be a record that the test was skipped. It would count neither as a failure, nor as a success. Summary would include the number skipped, and a log would possibly include the "why" the test was skipped.

In this way, the total number of tests would not need to vary with the OS/compiler, which can be beneficial when testing a package in many environments. Regression tests would "succeed" even if some tests are skipped.

This also plays nicely with the TAP protocol, though this is only an indirect benefit.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB