Skip to content

Commit

Permalink
remove superfluous formatter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss committed Mar 17, 2020
1 parent beb1d57 commit 9f7f7c4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 269 deletions.
147 changes: 0 additions & 147 deletions features/fixtures/formatters/failed-rule.message.json.ts

This file was deleted.

92 changes: 0 additions & 92 deletions features/fixtures/formatters/rejected-pickle-rule.message.json.ts

This file was deleted.

30 changes: 0 additions & 30 deletions features/formatters.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ Feature: Formatters
Then the "message" formatter output matches the fixture "formatters/rejected-pickle-scenario.message.json"
Then the "json" formatter output matches the fixture "formatters/rejected-pickle.json"

Scenario: rejected pickle from Rule
Given a file named "features/a.feature" with:
"""
Feature: a feature
Rule: a rule
Example: an example
Given a step
"""
When I run cucumber-js with all formatters and `--tags @a`
Then the "message" formatter output matches the fixture "formatters/rejected-pickle-rule.message.json"
Then the "json" formatter output matches the fixture "formatters/rejected-pickle.json"

Scenario: passed from Scenario
Given a file named "features/a.feature" with:
"""
Expand Down Expand Up @@ -76,24 +64,6 @@ Feature: Formatters
Then the "json" formatter output matches the fixture "formatters/failed-scenario.json"
And it fails

Scenario: failed from Rule
Given a file named "features/a.feature" with:
"""
Feature: a feature
Rule: a rule
Example: an example
Given a step
"""
Given a file named "features/step_definitions/steps.js" with:
"""
const {Given} = require('cucumber')
Given(/^a step$/, function(callback) { callback(new Error('my error')) })
"""
When I run cucumber-js with all formatters
Then the "message" formatter output matches the fixture "formatters/failed-rule.message.json"
And it fails

Scenario: retried and passed
Given a file named "features/a.feature" with:
"""
Expand Down

0 comments on commit 9f7f7c4

Please sign in to comment.