Logo: Relish

  1. Sign in

Project: relish

Render features

In order to share the Cucumber love

As a non-technical team member

I want Relish to make the features look nice and pretty

Background
Given
a project "rspec/rspec-core"
Scenarios
See title and description of a feature
Given
a feature has been pushed to the "rspec-core" project:
Feature: Foo
  This is where the feature's description goes.
  It can span over multiple lines.
When
I go to Foo's feature page
Then
I should see "Foo" as the topic view section's main heading
And
I should see the following bits of text:-
This is where the feature's description goes.
It can span over multiple lines.
Visitor views a feature that has a background
Given
a feature has been pushed to the "rspec-core" project:
Feature: Foo
  Background: Name of background goes here
    This is the description of the background
    And here is a step within the background
When
I go to Foo's feature page
And
I should see the following bits of text:-
Background: Name of background goes here
This is the description of the background
here is a step within the background
Visitor views a feature that has a scenario
Given
a feature has been pushed to the "rspec-core" project:
Feature: Foo
  Scenario: Bar
    Description of the Scenario
    Given this is a step
When
I go to Foo's feature page
And
I should see the following bits of text:-
Scenario: Bar
Description of the Scenario
Given this is a step
Visitor views a scenario that has a table
Given
a feature has been pushed to the "rspec-core" project:
Feature: Foo
  Scenario: Bar
    Given this step has a table:
      | fish | soup   |
      | beer | bottle |
When
I go to Foo's feature page
Then
I should see a table that looks like:-
fish soup
beer bottle
Visitor views a scenario that has a pystring
Given
a feature has been pushed to the "rspec-core" project:
Feature: Foo
  Scenario: Bar
    Given this step has a pystring:
      """
      Here it is
      in all its glory
      include some <br/> html
      """
When
I go to Foo's feature page
Then
I should see "Here it is"
And
I should see "in all its glory"
And
I should see "some <br/> html"
Feature with a Scenario Outline

Still to do on this:

  • highlight substitution points within the scenario outline
  • highlight header rows in the table
Given
a feature has been pushed to the "rspec-core" project:
Feature: Foo
  Scenario Outline: Bar
    Given <what>

    Examples: Examples name
      Examples description
      | what |
      | who  |
      | why  |
When
I go to Foo's feature page
Then
I should see "Examples name"
And
I should see "Examples description"
And
I should see "what"
And
I should see "who"
And
I should see "why"

Last published about 7 years ago by mattwynne.