Feature: JUnit XML formatter In order to support tools that import JUnit XML output I need to be able to support junit formatted output Scenario: Support of Feature Plus Scenario Node Given a feature "features/simple.feature" file: """ Feature: simple feature simple feature description Scenario: simple scenario simple scenario description """ When I run feature suite with formatter "junit" Then the rendered xml will be as follows: """ application/xml """ Scenario: Support of Feature Plus Scenario Node With Tags Given a feature "features/simple.feature" file: """ @TAG1 Feature: simple feature simple feature description @TAG2 @TAG3 Scenario: simple scenario simple scenario description """ When I run feature suite with formatter "junit" Then the rendered xml will be as follows: """ application/xml """ Scenario: Support of Feature Plus Scenario Outline Given a feature "features/simple.feature" file: """ Feature: simple feature simple feature description Scenario Outline: simple scenario simple scenario description Examples: simple examples | status | | pass | | fail | """ When I run feature suite with formatter "junit" Then the rendered xml will be as follows: """ application/xml """ Scenario: Support of Feature Plus Scenario Outline With Tags Given a feature "features/simple.feature" file: """ @TAG1 Feature: simple feature simple feature description @TAG2 Scenario Outline: simple scenario simple scenario description @TAG3 Examples: simple examples | status | | pass | | fail | """ When I run feature suite with formatter "junit" Then the rendered xml will be as follows: """ application/xml """ Scenario: Support of Feature Plus Scenario With Steps Given a feature "features/simple.feature" file: """ Feature: simple feature simple feature description Scenario: simple scenario simple scenario description Given passing step Then a failing step """ When I run feature suite with formatter "junit" Then the rendered xml will be as follows: """ application/xml """ Scenario: Support of Feature Plus Scenario Outline With Steps Given a feature "features/simple.feature" file: """ Feature: simple feature simple feature description Scenario Outline: simple scenario simple scenario description Given step Examples: simple examples | status | | passing | | failing | """ When I run feature suite with formatter "junit" Then the rendered xml will be as follows: """ application/xml """ # Currently godog only supports comments on Feature and not # scenario and steps. Scenario: Support of Comments Given a feature "features/simple.feature" file: """ #Feature comment Feature: simple feature simple description Scenario: simple scenario simple feature description """ When I run feature suite with formatter "junit" Then the rendered xml will be as follows: """ application/xml """ Scenario: Support of Docstrings Given a feature "features/simple.feature" file: """ Feature: simple feature simple description Scenario: simple scenario simple feature description Given passing step \"\"\" content type step doc string \"\"\" """ When I run feature suite with formatter "junit" Then the rendered xml will be as follows: """ application/xml """ Scenario: Support of Undefined, Pending and Skipped status Given a feature "features/simple.feature" file: """ Feature: simple feature simple feature description Scenario: simple scenario simple scenario description Given passing step And pending step And undefined And passing step """ When I run feature suite with formatter "junit" Then the rendered xml will be as follows: """ application/xml """