# TurnipFormatter Demo ## Usage $ cd /path/to/turnip_formatter $ bundle install --path vendor/bundle $ cd example $ bundle exec rspec $ open report.html ## Screenshot ### Basic step ```feature Scenario: normal monster Given there is a monster When I attack it Then it should die And Fanfare ``` ![Basic step](https://github.com/gongo/turnip_formatter/raw/master/example/images/basic_step.png) ### Failed step ```feature Scenario: strong monster This scenario will error So, fanfare is not...oh... Given there is a strong monster When I attack it Then it should die And Fanfare ``` ![Failed step](https://github.com/gongo/turnip_formatter/raw/master/example/images/failed_step.png) ### Pending step and specify tag ```feature Scenario: spell magic This scenario will error because he can't cast spell Given there is a strong monster When I cast a spell 'fireball' And I attack it Then it should die And Fanfare @magician Scenario: spell magic Given there is a strong monster When I cast a spell 'fireball' And I attack it Then it should die And Fanfare ``` ![Pending step](https://github.com/gongo/turnip_formatter/raw/master/example/images/pending_step.png) ![Tag step](https://github.com/gongo/turnip_formatter/raw/master/example/images/tag_step.png) ### Background ```feature Feature: Battle a monster with weapon Background: Given I equip a weapon Scenario: normal monster Given there is a monster When I attack it Then it should die And Fanfare Scenario: strong monster Given there is a strong monster When I attack it Then it should die And Fanfare ``` ![Background step](https://github.com/gongo/turnip_formatter/raw/master/example/images/background.png) ### Outline ```feature Feature: Battle monsters Scenario: Escape Given there are monsters: | gargoyle | | Cockatrice | When I escape Then I was able to escape Scenario: Inescapable Given there are monsters: | gargoyle | | Cockatrice | | basilisk | When I escape Then I could not escape ``` ![outline](https://github.com/gongo/turnip_formatter/raw/master/example/images/outline.png) ### Multiline ```feature Feature: A feature with multiline strings Scenario: This is a feature with multiline strings When the monster sings the following song """ Oh here be monsters This is cool """ Then the song should have 2 lines ``` ![Multiline](https://github.com/gongo/turnip_formatter/raw/master/example/images/multiline.png)