Interpreter and Fixture Selection
Rules to identify which interpreter the example is using.
| Import |
| com.greenpepper.interpreter |
First cell of first rows
To select which interpreter (and which fixture if any) will process a test table, GreenPepper looks at the first row of the test table. The first cell should name the interpreter to use.
| an interpreter |
| fixture name? |
fixture parameters? |
| nothing |
|
Adding a fixture
If the interpreter requires a fixture, the name of the fixture goes in the second cell.
| an interpreter |
a fixture |
| fixture name? |
fixture parameters? |
| AFixture |
nothing |
Parameters to the fixture
Fixtures might needs parameters. These optional parameters are placed in the remaining cells. Even parameters are ignored and serve to document odd parameters. In other words, cells after the fixture name alternate between comments and real parameters.
| an interpreter |
a fixture |
with |
a parameter |
| fixture name? |
fixture parameters? |
| AFixture |
a parameter |
| an interpreter |
a fixture |
with a |
1st parameter |
and a |
2nd parameter |
then a |
3rd parameter |
| fixture name? |
fixture parameters? |
| AFixture |
1st parameter, 2nd parameter, 3rd parameter |