jeamland/behave — Issue #18: Support numbering of Features/Scenarios
Author: r1chardj0n3s
Created: 2011-11-29 23:16:06+00:00
State: open

Wikipedia has an example of a feature file:

Scenario 1: Refunded items should be returned to stock
Given a customer previously bought a black sweater from me
and I currently have three black sweaters left in stock
when he returns the sweater for a refund
then I should have four black sweaters in stock.

Scenario 2: Replaced items should be returned to stock
Given that a customer buys a blue garment
and I have two blue garments in stock
and three black garments in stock.
When he returns the garment for a replacement in black,
then I should have three blue garments in stock
and two black garments in stock.

Note the numbering of Scenarios. That's useful for referencing.

As an aside, also note the capitalisation of the keywords, allowing the scenario text to be a slightly more correct form of English.