Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON formatter for cucumber-js #79

Closed
wants to merge 48 commits into from
Closed
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
a23d0b1
Skeletal JSON formatter
worldofchris May 21, 2012
3f23299
Getting my head around Jasmine Spys...
worldofchris May 24, 2012
b4f1b0c
Tests now ignore whitespace / indentation and just check JSON is valid
worldofchris May 24, 2012
953f824
Updated README to show status of my hacks
worldofchris May 24, 2012
8eb1074
Removed redundant ProgressFormatter methods from the JsonFormatter an…
worldofchris May 25, 2012
fd940fa
Updated the output of the tests in the json_formatter feature to matc…
worldofchris May 25, 2012
58cd346
Command line says there are no commits GUI says there are…
worldofchris May 25, 2012
e613101
Now have two passing scenarios.
worldofchris May 26, 2012
a4a6b75
Now have three scenarios passing albeit with steps:match:location not…
worldofchris May 27, 2012
deb9e6b
Four passing scenrios. Need to add error_message to EVENT though
worldofchris May 28, 2012
f91bea1
Added Scenarios for failing and passing steps
worldofchris Jun 16, 2012
51c52af
Added more scenarios to the tests. Removed redundant methods copied …
worldofchris Jun 21, 2012
b3dc4ad
Removing redundant dir
worldofchris Jun 21, 2012
e042dae
Added more tests. Pushed the placeholder URI down into the event obj…
worldofchris Jun 21, 2012
7035ea0
Added tests for multiple features. Fixed functionality to populate co…
worldofchris Jun 22, 2012
3a03a91
Added note to readme to clarify current status of JSON formatter
worldofchris Jun 22, 2012
7dfe6e3
Merge remote-tracking branch 'upstream/master'
worldofchris Jun 22, 2012
516c5b9
Removed redunant require of Cucumber-js
worldofchris Jun 22, 2012
109d47d
Updated README to show that we are now using the new Gherkin provided…
worldofchris Jun 25, 2012
ebafde0
Merge remote-tracking branch 'upstream/master'
worldofchris Jun 25, 2012
a7d9747
Refactored to use the newly available Gherking json_formatter. Got o…
worldofchris Jun 25, 2012
e0cf8a6
Adding renamed classes which now wrap the Gherkin JSON formatter
worldofchris Jun 25, 2012
95b7aba
Removed my now redundant json_formatter code and replaced with calls …
worldofchris Jun 26, 2012
31f260b
Jasmine tests all passing. Ugly relative path to require Gherkin rem…
worldofchris Jun 26, 2012
0e5d28b
Refactored json_formatter_wrapper to use functionality provided by pa…
worldofchris Jul 5, 2012
6ef524d
Merge remote-tracking branch 'upstream/master'
worldofchris Jul 16, 2012
f5c2112
Added Work In Progress DocString formatting. Fixed fail in previous …
worldofchris Jul 19, 2012
8272e2f
Added DocString support
worldofchris Jul 19, 2012
dd5eb0a
Added support for scenario level tags
worldofchris Jul 19, 2012
0b8d93e
Added support for Feature level tags
worldofchris Jul 19, 2012
1cdfafb
Added support for Data Tables but with line for each row stubbed out …
worldofchris Jul 23, 2012
0d62fb8
Added scenario to test for a background with a table
worldofchris Jul 23, 2012
0e92cce
Added scenario to test for background with DocString
worldofchris Jul 23, 2012
b23ee5a
Made progress on the jasmine-node tests. In doing this refactored js…
worldofchris Jul 23, 2012
a548a3b
Fixed up Jasmine tests to make them test _just_ the json_formatter_wr…
worldofchris Jul 24, 2012
cf4e301
Added scenario to test for skipped steps
worldofchris Jul 24, 2012
57e6f5b
Added more jasmine tests for step results
worldofchris Jul 24, 2012
8a953bc
Corrected formatting in features file
worldofchris Jul 24, 2012
0ee152a
Deleted redundant a.feature file
worldofchris Jul 24, 2012
243bce8
Moved Gherkin JSON formatter back into Wrapper class. Added getter t…
worldofchris Jul 25, 2012
80b8b56
Removed redundant spec for uri method
worldofchris Jul 25, 2012
b827efb
Removed spurious spec which has nothing to do with JSON formatter
worldofchris Jul 25, 2012
5753058
Renamed JSON Formatter to make it consistent with existing formatters
worldofchris Jul 25, 2012
73b52b6
Removed spurious feature file
worldofchris Jul 25, 2012
e37a4cc
Removed need for CUCUMBER_JS_HOME environment variable by substitutin…
worldofchris Jul 25, 2012
8cab836
Merge remote-tracking branch 'upstream/master'
worldofchris Aug 6, 2012
64d5438
Updated package.json to indicate dependency on version of gherkin tha…
worldofchris Aug 6, 2012
2c9d5e0
Made JsonFormatter consistent with others by making constructor take …
worldofchris Aug 6, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Cucumber.js is still a work in progress. Here is its current status.
| [Failing steps](/~https://github.com/cucumber/cucumber-tck/blob/master/failing_steps.feature) | Done |
| [Hooks](/~https://github.com/cucumber/cucumber-tck/blob/master/hooks.feature) | Done |
| [I18n](/~https://github.com/cucumber/cucumber-tck/blob/master/i18n.feature) | To do |
| [JSON formatter](/~https://github.com/cucumber/cucumber-tck/blob/master/json_formatter.feature) | To do |
| [JSON formatter](/~https://github.com/cucumber/cucumber-tck/blob/master/json_formatter.feature) | WIP<sup>4</sup> |
| [Pretty formatter](/~https://github.com/cucumber/cucumber-tck/blob/master/pretty_formatter.feature) | WIP<sup>2</sup> |
| [Scenario outlines and examples](/~https://github.com/cucumber/cucumber-tck/blob/master/scenario_outlines_and_examples.feature) | To do |
| [Stats collector](/~https://github.com/cucumber/cucumber-tck/blob/master/stats_collector.feature) | To do |
Expand All @@ -38,6 +38,12 @@ Cucumber.js is still a work in progress. Here is its current status.
1. Not certified by [Cucumber TCK](/~https://github.com/cucumber/cucumber-tck) yet.
2. Considered for removal from [Cucumber TCK](/~https://github.com/cucumber/cucumber-tck).
3. Simple *Around*, *Before* and *After* hooks are available.
4. Missing 'matches' attributes. Simple wrapper for Gherkin JsonFormatter pending porting of:

* /~https://github.com/cucumber/gherkin/blob/master/lib/gherkin/listener/formatter_listener.rb
* /~https://github.com/cucumber/gherkin/blob/master/lib/gherkin/formatter/filter_formatter.rb

In Gherkin itself

### Cucumber.js-specific features

Expand Down
2 changes: 1 addition & 1 deletion features/cli.feature
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ Feature: Command line interface

Scenario: display help (short flag)
When I run `cucumber.js -h`
Then I see the help of Cucumber
Then I see the help of Cucumber
Loading