You are here: Foswiki>Tasks Web>Item9165 (04 Jan 2015, GeorgeClark)Edit Attach

Item9165: create a way to list/annotate and run a slice of tests

pencil
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: UnitTestContrib
Branches:
Reported By: SvenDowideit
Waiting For:
Last Change By: GeorgeClark
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
 

ItemTemplate edit

Summary create a way to list/annotate and run a slice of tests
ReportedBy SvenDowideit
Codebase trunk
SVN Range
AppliesTo Engine
Component UnitTestContrib
Priority Enhancement
CurrentState Closed
WaitingFor
Checkins distro:6a532753516a distro:581461d8b17e
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r6 - 04 Jan 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy