Sha256: 55269861447ebb0fb300e1aa6922469aabcbfa3ecea8e098fb2182f694602b21

Contents?: true

Size: 1.1 KB

Versions: 15

Compression:

Stored size: 1.1 KB

Contents

Feature: Writing good feature tests with aruba to create documentations

  You can use Markdown within your feature tests. This is quite good to write a
  living documentation.

  There are some edge cases where Gherkin and Markdown don't agree. Bullet lists
  using `*` is one example. The `*` is also an alias for step keywords in
  Gherkin. Markdown headers (the kind starting with a `#`) is another example.
  They are parsed as comments by Gherkin. To use either of these, just escape
  them with a backslash. Alternatively just use the "-".

  You'd write:

  ```gherkin
  Scenario: Make tea
    \## Making tea
    \* Get a pot
    \* And some hot water

    Given...
  ```

  This way Gherkin won't recognize these lines as special tokens, and the
  reporter will render them as Markdown. (The reporter strips away any leading
  the backslashes before handing it off to the Markdown parser).

  Another option is to use alternative Markdown syntax and omit conflicts and
  escaping altogether:

  ```gherkin
  Scenario: Make tea
    Making tea
    ----------
    - Get a pot
    - And some hot water

    Given...
  ```

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
aruba-0.14.9 features/getting_started/writing_good_feature_tests.feature
aruba-0.14.8 features/getting_started/writing_good_feature_tests.feature
aruba-0.14.7 features/getting_started/writing_good_feature_tests.feature
aruba-0.14.6 features/getting_started/writing_good_feature_tests.feature
aruba-0.14.5 features/getting_started/writing_good_feature_tests.feature
aruba-0.14.4 features/getting_started/writing_good_feature_tests.feature
aruba-0.14.3 features/getting_started/writing_good_feature_tests.feature
aruba-win-fix-0.14.2 features/getting_started/writing_good_feature_tests.feature
aruba-0.14.2 features/getting_started/writing_good_feature_tests.feature
aruba-0.14.1 features/getting_started/writing_good_feature_tests.feature
aruba-0.14.0 features/getting_started/writing_good_feature_tests.feature
aruba-0.13.0 features/getting_started/writing_good_feature_tests.feature
aruba-0.12.0 features/getting_started/writing_good_feature_tests.feature
aruba-0.11.2 features/getting_started/writing_good_feature_tests.feature
aruba-0.11.1 features/getting_started/writing_good_feature_tests.feature