Skip to content

Commit

Permalink
Fix Cucumber reports for cucumber-android
Browse files Browse the repository at this point in the history
This enables standard Cucumber reports using the 'format' parameter of
CucumberOptions. Reports will be stored on the device.
  • Loading branch information
friederbluemle committed Oct 13, 2013
1 parent b2b73e5 commit 9cf7f82
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ public void onStart() {
final List<CucumberFeature> cucumberFeatures = runtimeOptions.cucumberFeatures(resourceLoader); final List<CucumberFeature> cucumberFeatures = runtimeOptions.cucumberFeatures(resourceLoader);
final int numberOfTests = TestCaseCounter.countTestCasesOf(cucumberFeatures); final int numberOfTests = TestCaseCounter.countTestCasesOf(cucumberFeatures);


runtimeOptions.getFormatters().clear();
runtimeOptions.getFormatters().add(new AndroidInstrumentationReporter(runtime, this, numberOfTests)); runtimeOptions.getFormatters().add(new AndroidInstrumentationReporter(runtime, this, numberOfTests));
runtimeOptions.getFormatters().add(new AndroidLogcatReporter(TAG)); runtimeOptions.getFormatters().add(new AndroidLogcatReporter(TAG));


Expand Down
1 change: 1 addition & 0 deletions examples/android/cukeulator-test/libs/README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and the required jars will **automatically be downloaded.**
* cucumber-picocontainer (shouldn't be necessary) * cucumber-picocontainer (shouldn't be necessary)
* picocontainer-2.14.3 (shouldn't be necessary) * picocontainer-2.14.3 (shouldn't be necessary)
* gherkin-2.12.1 (shouldn't be necessary) * gherkin-2.12.1 (shouldn't be necessary)
* cucumber-html (only required for HTML reports)




* To download the release versions run `ant -f init.xml`. * To download the release versions run `ant -f init.xml`.
Expand Down

0 comments on commit 9cf7f82

Please sign in to comment.