Skip to content

Commit 7fd3bdd

Browse files
worldofchrisjbpros
authored andcommitted
Add JSON formatter (close #79)
1 parent d70ffc3 commit 7fd3bdd

15 files changed

+2104
-22
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Cucumber.js is still a work in progress. Here is its current status.
2525
| [Failing steps](https://github.com/cucumber/cucumber-tck/blob/master/failing_steps.feature) | Done |
2626
| [Hooks](https://github.com/cucumber/cucumber-tck/blob/master/hooks.feature) | Done |
2727
| [I18n](https://github.com/cucumber/cucumber-tck/blob/master/i18n.feature) | To do |
28-
| [JSON formatter](https://github.com/cucumber/cucumber-tck/blob/master/json_formatter.feature) | To do |
28+
| [JSON formatter](https://github.com/cucumber/cucumber-tck/blob/master/json_formatter.feature) | WIP<sup>4</sup> |
2929
| [Pretty formatter](https://github.com/cucumber/cucumber-tck/blob/master/pretty_formatter.feature) | WIP<sup>2</sup> |
3030
| [Scenario outlines and examples](https://github.com/cucumber/cucumber-tck/blob/master/scenario_outlines_and_examples.feature) | To do |
3131
| [Stats collector](https://github.com/cucumber/cucumber-tck/blob/master/stats_collector.feature) | To do |
@@ -38,6 +38,12 @@ Cucumber.js is still a work in progress. Here is its current status.
3838
1. Not certified by [Cucumber TCK](https://github.com/cucumber/cucumber-tck) yet.
3939
2. Considered for removal from [Cucumber TCK](https://github.com/cucumber/cucumber-tck).
4040
3. Simple *Around*, *Before* and *After* hooks are available.
41+
4. Missing 'matches' attributes. Simple wrapper for Gherkin JsonFormatter pending porting of:
42+
43+
* https://github.com/cucumber/gherkin/blob/master/lib/gherkin/listener/formatter_listener.rb
44+
* https://github.com/cucumber/gherkin/blob/master/lib/gherkin/formatter/filter_formatter.rb
45+
46+
In Gherkin itself
4147

4248
### Cucumber.js-specific features
4349

features/cli.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Feature: Command line interface
1010
Scenario:
1111
When a step is passing
1212
"""
13-
Given a file named "features/step_definitions/cucumber_steps.js" with:
13+
And a file named "features/step_definitions/cucumber_steps.js" with:
1414
"""
1515
var cucumberSteps = function() {
1616
this.When(/^a step is passing$/, function(callback) { callback(); });
@@ -51,7 +51,7 @@ Feature: Command line interface
5151
Scenario:
5252
When a step is passing
5353
"""
54-
Given a file named "step_definitions/cucumber_steps.js" with:
54+
And a file named "step_definitions/cucumber_steps.js" with:
5555
"""
5656
var cucumberSteps = function() {
5757
this.When(/^a step is passing$/, function(callback) { callback(); });
@@ -75,7 +75,7 @@ Feature: Command line interface
7575
Scenario:
7676
When a step is passing
7777
"""
78-
Given a file named "step_definitions/cucumber_steps.js" with:
78+
And a file named "step_definitions/cucumber_steps.js" with:
7979
"""
8080
var cucumberSteps = function() {
8181
this.When(/^a step is passing$/, function(callback) { callback(); });

0 commit comments

Comments
 (0)