classafFancordion::FancordionRunner
sys::Obj afFancordion::FancordionRunner
Runs Fancordion fixtures.
- commands
The commands made available to Fancordion tests.
- current
static FancordionRunner? current()Returns the current
FancordionRunnerin use, ornullif no tests are running.- errorPage
virtual Str errorPage(FixtureMeta fixMeta, Err err)Rendered when a Fixture fails for an unknown reason - usually due to an error in the skin.
By default this just renders the stack trace.
- fixtureSetup
virtual Void fixtureSetup(Obj fixtureInstance)Called before every fixture.
By default does nothing.
- fixtureTearDown
virtual Void fixtureTearDown(Obj fixtureInstance, FixtureResult result)Called after every fixture.
By default prints the location of the result file.
- gimmeSomeSkin
virtual FancordionSkin gimmeSomeSkin()A hook that creates an
FancordionSkininstance.Simply returns
skinType.make()by default.- make
new make(|This? f := null)Creates a
FancordionRunner.- outputDir
File outputDir := Env.cur().tempDir() + `fancordion/`Where the generated HTML result files are saved.
- runFixture
FixtureResult runFixture(Obj fixtureInstance)Runs the given Fancordion fixture.
- skinType
Type skinType := afFancordion::ClassicSkin#The skin applied to generated HTML result files.
- suiteSetup
virtual Void suiteSetup()Called before the first fixture is run.
By default this empties the output dir.
- suiteTearDown
virtual Void suiteTearDown(Type:FixtureResult resultsCache)Called after the last fixture has run.
By default does nothing.