Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jnewland/cucumber-json
A cucumber output formatter that outputs JSON
https://github.com/jnewland/cucumber-json
Last synced: about 16 hours ago
JSON representation
A cucumber output formatter that outputs JSON
- Host: GitHub
- URL: https://github.com/jnewland/cucumber-json
- Owner: jnewland
- License: mit
- Created: 2010-05-19T14:34:17.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-05-19T14:48:02.000Z (over 14 years ago)
- Last Synced: 2024-10-11T17:29:31.147Z (about 1 month ago)
- Language: Ruby
- Homepage:
- Size: 571 KB
- Stars: 9
- Watchers: 2
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
cucumber-json
=============A [Cucumber Output Formatter](http://wiki.github.com/aslakhellesoy/cucumber/custom-formatters)
that generates JSON.Feature: JSON formatter
As a developer
I want to receive reports of failing cucumber features in a parsable format
In order to facilitace elegant continuous integration
In order to protect revenueInstallation
------------gem install cucumber-json
Usage
-----In your project:
cucumber --format Cucumber::Formatter::JSON
Or, to output to a file:
cucumber --format Cucumber::Formatter::JSON --out path/to/filename
Parsing
-------The JSON generated is a hash that has 3 keys:
* failing_features
* an array of all failing features, in a format similar to the default
cucumber format
* features
* an array of all features, in a format similar to the default cucumber
format
* status_counts
* a hash of statuses, and the number of steps with that status
Additional information could be added to this hash in the future; this is just
what I needed at the moment.Example
-------The output of this project's cucumber features have been run through the
`Cucumber::Formatter::JSON` formatter and included at `examples/features.json`.
This was generated like so:cucumber -f Cucumber::Formatter::JSON --out examples/features.json
Author
------[Jesse Newland](http://twitter.com/jnewland)
License
-------MIT, same license as Ruby. See `LICENSE` for more details