classafConcordion::ConcordionRunner

sys::Obj
  afConcordion::ConcordionRunner

Runs Concordion fixtures.

commands

Source

Str:Command commands := ...

The commands made available to Concordion tests.

current

Source

const static ConcordionRunner? current()

Returns the current ConcordionRunner in use, or null if no tests are running.

errorPage

Source

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

Source

virtual Void fixtureSetup(Obj fixtureInstance)

Called before every fixture.

By default does nothing.

fixtureTearDown

Source

virtual Void fixtureTearDown(Obj fixtureInstance, FixtureResult result)

Called after every fixture.

By default prints the location of the result file.

gimmeSomeSkin

Source

virtual ConcordionSkin gimmeSomeSkin()

A hook that creates an ConcordionSkin instance.

Simply returns skinType.make() by default.

make

Source

new make(|This? f := null)

Creates a ConcordionRunner.

outputDir

Source

File outputDir := Env.cur().tempDir() + `concordion/`

Where the generated HTML result files are saved.

runFixture

Source

FixtureResult runFixture(Obj fixtureInstance)

Runs the given Concordion fixture.

skinType

Source

Type skinType := afConcordion::ClassicSkin#

The skin applied to generated HTML result files.

suiteSetup

Source

virtual Void suiteSetup()

Called before the first fixture is run.

By default this empties the output dir.

suiteTearDown

Source

virtual Void suiteTearDown(Type:FixtureResult resultsCache)

Called after the last fixture has run.

By default does nothing.