Item9165: create a way to list/annotate and run a slice of tests
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
I'm thinking of adding a hash of tests that
should expected_fail on a case insensitive file system.
that way, we could also run all tests are are expected to fail for a reason, and thus work on changing that.
this way we know what should fail, rather than delaying this knowledge until the test is run...
--
SvenDowideit - 16 Jun 2010
I think I've implemented the API to get this done in
Item11479,
$this->expect_failure(using => 'LowerCaseFS')
- you just need to create an
'LowerCaseFS'
entry in the
%foswiki_things
hash in
FoswikiTestCase.pm
As for
only running tests expected to fail, I added the ability for tests to be skipped using a hash of tests vs conditions-for-skippage, this is done by implementing an
skip($test) -> $reason
method, see
TemplatesTests.pm
as an example, you could rip this off the same way to allow tests to implement an
expect_failure($test) -> $reason
.
--
PaulHarvey - 18 Jun 2012