Just when you thought your tests couldn't look any better, here comes Fancordion Bootstrap with a swarm of fresh Fancordion skins! It has a skin for the popular Bootstrap framework and a skin for each of the Bootswatch themes, making your tests clean, clear and easy to read.
Should an error be thrown in your Fancordion fixture, a Show Stack Trace button is shown next to the command in error which, when pressed, displays a modal dialogue with the stack trace.
SlimerDude Tue 30 Jun 2015
Fancordion Bootstrap Released!
Just when you thought your tests couldn't look any better, here comes Fancordion Bootstrap with a swarm of fresh Fancordion skins! It has a skin for the popular Bootstrap framework and a skin for each of the Bootswatch themes, making your tests clean, clear and easy to read.
The Fancordion Bootstrap documentation even comes with sample pages, allowing you to visualise each skin and choose a favourite!
Fancordion Bootstrap is bundled with skins for Bootstrap v3.3.5.
pod.fandocfollows:Quick Start
using afFancordion using afFancordionBootstrap ** Bootstrap Fixture ** ################# ** ** This simple fixture is rendered with the Bootstrap skin. ** ** Example ** ------- ** Fancordion says, [Hello World!]`verifyEq:greeting()` ** class BootstrapFixture : FixtureTest { override FancordionRunner fancordionRunner() { FancordionRunner() { it.skinType = BootstrapSkin# } } Str greeting() { "Hello World!" } }Usage
Bootstrap Skins
To use the vanilla Bootstrap skin, set the skinType field on FancordionRunner:
using afFancordion using afFancordionBootstrap ** My Fixture class BootstrapFixture : FixtureTest { override FancordionRunner fancordionRunner() { FancordionRunner() { it.skinType = BootstrapSkin# } } ... }To use the themed version of Bootstrap, set the gimmeSomeSkin field instead:
it.gimmeSomeSkin = |->FancordionSkin| { BootstrapSkin(true) }Bootswatch Skins
Fancordion Bootstrap is also bundled with Bootswatch skins. To use, set the gimmeSomeSkin function on FancordionRunner:
using afFancordion using afFancordionBootstrap ** My Bootswatch Fixture class BootswatchFixture : FixtureTest { override FancordionRunner fancordionRunner() { FancordionRunner() { it.gimmeSomeSkin = |->FancordionSkin| { BootswatchSkin("Cyborg") } } } ... }The Bootswatch skinName may be one of:
Error Modals
Should an error be thrown in your Fancordion fixture, a Show Stack Trace button is shown next to the command in error which, when pressed, displays a modal dialogue with the stack trace.