Given: Intellij 2020.1.1
And: 0.9.6.RC1 OR 0.9.6.RC2
And: JDK 8 or 11
And: Feature file with multiple scenarios
When: Right-click on scenario, select "Run Scenario: test name"
Then Expected: Run only selected scenario
But Actually: Runs all scenarios in file
//Note: verified when downgrade to 0.9.5 behaves as expected
Run/->Edit Configuration->Cucumber Java->Scenario: test name
Name: -> Scenario: test name
Main class: -> cucumber.api.cli.Main
Glue: -> com.intuit.karate
Program arguments: -> --plugin org.jetbrains.plugins.cucumber.java.run.CucumberJvmSMFormatter --monochrome --name "^test name$"#
Working Directory: -> $MODULE_WORKING_DIR$
JRE -> JDK 8 or 11
@ericdriggs thanks for the details, I will investigate
@ericdriggs since this is a guess-fix, please test locally and confirm: https://github.com/intuit/karate/wiki/Developer-Guide
Still seeing issue. Will binary search through commit history from 0.9.5 to id which commit caused regression.
@ericdriggs I think it is a change on the IntelliJ side. you can get an idea of what I tried to fix from the commit and where to add a log statement or break-point. not something I will spend time on for now
Issue is a result of this commit:
_"system properties now honored for runner fluent api #1061"_
https://github.com/intuit/karate/commit/4925b2f41d389230a37289da7409d01295c24d51
Moving to
_"Merge pull request #1059 from babusekaran/appium_handle_locator_error"_
https://github.com/intuit/karate/commit/1af9d55694f1a334e6dbcc273dd19bc5dcc66bd5
then works as expected.
Also when replacing references of deprecated cucumber.api.CucumberOptions with local io.cucumber.junit.CucumberOptions still worked.
@ericdriggs ok I think I got it this time, try now
Confirmed working.
Thanks!
@ericdriggs awesome, thanks. really appreciate that you are providing feedback on the RC releases, wish more people do so
0.9.6 released