File: debug_formatter.feature

package info (click to toggle)
cucumber 2.4.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,076 kB
  • sloc: ruby: 17,016; javascript: 4,641; makefile: 12; sh: 10; tcl: 3
file content (47 lines) | stat: -rw-r--r-- 1,060 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Feature: Debug formatter

  In order to help you easily visualise the listener API, you can use
  the `debug` formatter that prints the calls to the listener as a
  feature is run.

  Background:
    Given the standard step definitions

  Scenario: title
    Given a file named "features/test.feature" with:
      """
      Feature:
        Scenario:
          Given this step passes
      """
    When I run `cucumber -f debug`
    Then the stderr should not contain anything
    Then it should pass with:
      """
      before_test_case
      before_features
      before_feature
      before_tags
      after_tags
      feature_name
      before_test_step
      after_test_step
      before_test_step
      before_feature_element
      before_tags
      after_tags
      scenario_name
      before_steps
      before_step
      before_step_result
      step_name
      after_step_result
      after_step
      after_test_step
      after_steps
      after_feature_element
      after_test_case
      after_feature
      after_features
      done
      """