-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add cli for specifying multiple formatters
- Loading branch information
charlierudolph
committed
Oct 12, 2015
1 parent
9959ca9
commit e402399
Showing
17 changed files
with
188 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
Feature: Multiple Formatters | ||
|
||
Background: | ||
Given a file named "features/a.feature" with: | ||
""" | ||
Feature: some feature | ||
Scenario: I've declared one step which passes | ||
Given This step is passing | ||
""" | ||
And a file named "features/step_definitions/cucumber_steps.js" with: | ||
""" | ||
var cucumberSteps = function() { | ||
this.Given(/^This step is passing$/, function(callback) { callback(); }); | ||
}; | ||
module.exports = cucumberSteps; | ||
""" | ||
|
||
Scenario: Ability to specify multiple formatters | ||
When I run cucumber.js with `-f progress -f pretty:pretty.txt` | ||
Then it outputs this text: | ||
""" | ||
. | ||
1 scenario (1 passed) | ||
1 step (1 passed) | ||
<duration-stat> | ||
""" | ||
And the file "pretty.txt" has the text: | ||
""" | ||
Feature: some feature | ||
Scenario: I've declared one step which passes # features/a.feature:3 | ||
Given This step is passing # features/a.feature:4 | ||
1 scenario (1 passed) | ||
1 step (1 passed) | ||
<duration-stat> | ||
""" | ||
|
||
Scenario: Invalid path | ||
When I run cucumber.js with `-f progress -f pretty:invalid/pretty.txt` | ||
Then the error output contains the text: | ||
""" | ||
ENOENT | ||
""" | ||
And the exit status should be non-zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.