Skip to content

Commit 9cf7f82

Browse files
Fix Cucumber reports for cucumber-android
This enables standard Cucumber reports using the 'format' parameter of CucumberOptions. Reports will be stored on the device.
1 parent b2b73e5 commit 9cf7f82

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

android/src/main/java/cucumber/api/android/CucumberInstrumentation.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ public void onStart() {
9292
final List<CucumberFeature> cucumberFeatures = runtimeOptions.cucumberFeatures(resourceLoader);
9393
final int numberOfTests = TestCaseCounter.countTestCasesOf(cucumberFeatures);
9494

95-
runtimeOptions.getFormatters().clear();
9695
runtimeOptions.getFormatters().add(new AndroidInstrumentationReporter(runtime, this, numberOfTests));
9796
runtimeOptions.getFormatters().add(new AndroidLogcatReporter(TAG));
9897

examples/android/cukeulator-test/libs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and the required jars will **automatically be downloaded.**
1212
* cucumber-picocontainer (shouldn't be necessary)
1313
* picocontainer-2.14.3 (shouldn't be necessary)
1414
* gherkin-2.12.1 (shouldn't be necessary)
15+
* cucumber-html (only required for HTML reports)
1516

1617

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

0 commit comments

Comments
 (0)