Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 72500a0

Browse files
Add support for 'log' option
This has the same effect as providing the Cucumber option '--dry-run'.
1 parent b518300 commit 72500a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ public void onCreate(Bundle arguments) {
6262

6363
if (arguments != null) {
6464
debug = getBooleanArgument(arguments, "debug");
65+
boolean logOnly = getBooleanArgument(arguments, "log");
66+
if (logOnly && arguments.getString("dryRun") == null) {
67+
arguments.putString("dryRun", "true");
68+
}
6569
justCount = getBooleanArgument(arguments, "count");
6670
coverage = getBooleanArgument(arguments, "coverage");
6771
coverageFilePath = arguments.getString("coverageFile");

0 commit comments

Comments
 (0)