updated readme - added in instructions for using regular cucumber

This commit is contained in:
Kingsley Hendrickse 2012-05-20 16:55:44 +01:00
parent 00da440cf8
commit 536c19205d
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# Publish pretty [cucumber-jvm](https://github.com/cucumber/cucumber-jvm) reports on [Jenkins](http://jenkins-ci.org/)
This is a Java Jenkins plugin which publishes pretty html reports showing the results of cucumber-jvm runs.
This is a Java Jenkins plugin which publishes pretty html reports showing the results of cucumber-jvm runs. It also works for the ruby versions of cucumber - not just the cucumber-jvm. To use with regular cucumber just make sure to run cucumber like this: cucumber --format json -o cucumber.json
## Background
@ -52,7 +52,7 @@ And you can drill down into tag specific reports:
![Tag report]
(https://github.com/masterthought/jenkins-cucumber-jvm-reports-plugin-java/raw/master/.README/tag-report.png)
Make sure you have configured cucumber-jvm to run with the JUnit runner and to generate a json report:
Make sure you have configured cucumber-jvm to run with the JUnit runner and to generate a json report: (note - you can add other formatters in if you like e.g. pretty - but only the json formatter is required for the reports to work)
package net.masterthought.example;
@ -60,7 +60,7 @@ Make sure you have configured cucumber-jvm to run with the JUnit runner and to g
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@Cucumber.Options(format = {"pretty", "html:target/cucumber", "json:target/cucumber.json"})
@Cucumber.Options(format = {"json:target/cucumber.json"})
public class ATMTest {
}