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
@dustinsand I do agree that throwing this error may be un-necessary - the original intent was in case user got the path wrong, the IDE would show a green bar even if zero tests were run. I'm ok to accept a PR to change this
dustinsand
changed the title
Add Karate configuration option to disable the "no features or scenarios found" error
Add Karate configuration option to disable the "no features or scenarios found" assertion
Mar 12, 2024
If JUnit 5 is used to run a Karate feature file, but no scenarios are found that match the run criteria, this error is thrown:
no features or scenarios found: [classpath:karate/features/helloworld/]
For example, if Karate is run with these arguments and this feature file, the error will be thrown.
-Dkarate.options="--tags @smoke"
Feature: Hello World
@prod
Scenario: Hello to the world
Refs: karatelabs#2531
If JUnit 5 is used to run a Karate feature file, but no scenarios are found that match the run criteria, this error is thrown:
For example, if Karate is run with these arguments and this feature file, the error will be thrown.
-Dkarate.options="--tags @smoke"
Feature: Hello World
@prod
Scenario: Hello to the world
The workaround is to add a scenario that does nothing, for example,
Feature: Hello World
@prod
Scenario: Hello to the world
@smoke
Scenario: Do Nothing
Opened this issue to start a discussion for adding a Karate configuration option to disable this error in com.intuit.karate.junit5.Karate.java.
The text was updated successfully, but these errors were encountered: