Exam >
On this page

Example command

Decorated version of Concordion example command

Overview

e:example command effectively will be replaced by Concordion example command before execution with additional decorating markup to support example content collapsing, summary rendering etc.

Examples

Basic

In the simplest form only the name attribute is required.

The following markup:
<e:example name="basic"> basic example </e:example>
will be rendered as:
Unimplemented
basic example Unimplemented

Implementation Status

e:example command support propagation of an implementation status.

The following markup:
<e:example name="expected to fail" status="ExpectedToFail"> "Expected to fail" example 
  <span cc:assertTrue="false"/>
</e:example>
will be rendered as:
expected to failExpectedToFail
"Expected to fail" example   == false

"Before" examples

There are commands for specifying that a piece of the specification should be run before each example