You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
referencing the attached project run the following command. (assuming the folder "git" is at the root of your drive).
On linux/mac
gradle clean test -b "/Git/triple-slash/build.gradle" -Dtest=KarateRunner -Dkarate.options="classpath:Git/triple-slash/src/test/java/org/company/tests"
on windows
gradle clean test -b "c:\Git\triple-slash\build.gradle" -Dtest=KarateRunner -Dkarate.options="classpath:c:\Git\triple-slash\src\test\java\org\company\tests"
expected
there are 3 feature files below the given classpath in the gradle command
each file will run 6 tests for a total of 6 x 3 = 18 tests/scenarios
the console output and reports should both show 18 scenarios
actual
the console output shows 36 scenarios
the timeline report shows 36 scenarios
sometimes the cucumber reports will show 36 scenarios
twice the number of scenarios are shown when specifying a fully qualified classpath path in karate.options. the duplicated scenarios are interesting. they are prefixed with a triple slash /// and their result has no impact on for example the cucumber report under /cucumber-html-reports.
The text was updated successfully, but these errors were encountered:
@kirksl the correct usage in this case should be -Dkarate.options="/Git/triple-slash/src/test/java/org/company/tests"without the classpath: prefix if the user knows this is a "proper" OS path.
anyway, I have put in a fix so this should be detected and there is logic to de-dupe as well
would like @celcius112 to take a look at this if it impacts #751
@ptrthomas thanks for fixing. also curious does karate.options= accept the "file:" and "this:" prefixes and if so wondering if they should be specified.
triple-slash.zip
repro steps
referencing the attached project run the following command. (assuming the folder "git" is at the root of your drive).
On linux/mac
gradle clean test -b "/Git/triple-slash/build.gradle" -Dtest=KarateRunner -Dkarate.options="classpath:Git/triple-slash/src/test/java/org/company/tests"
on windows
gradle clean test -b "c:\Git\triple-slash\build.gradle" -Dtest=KarateRunner -Dkarate.options="classpath:c:\Git\triple-slash\src\test\java\org\company\tests"
expected
there are 3 feature files below the given classpath in the gradle command
each file will run 6 tests for a total of 6 x 3 = 18 tests/scenarios
the console output and reports should both show 18 scenarios
actual
the console output shows 36 scenarios
the timeline report shows 36 scenarios
sometimes the cucumber reports will show 36 scenarios
twice the number of scenarios are shown when specifying a fully qualified classpath path in karate.options. the duplicated scenarios are interesting. they are prefixed with a triple slash /// and their result has no impact on for example the cucumber report under /cucumber-html-reports.
The text was updated successfully, but these errors were encountered: