prashant-ramcharan / courgette-jvm

Multiprocess | Parallel Cucumber-JVM | Parallelize your Java Cucumber tests on a feature level or on a scenario level.
MIT License
132 stars 38 forks source link

breakpoints #243

Closed smartserega closed 3 years ago

smartserega commented 3 years ago

I have problem with breakpoints in debug mode. intellij does not stop on breakpoints, i am not able to debug code. When i dont using courgette breakpoints works. Do you have same problems with intellij using courgette or it this is something specical?

prashant-ramcharan commented 3 years ago

When using the Courgette runner, you won't be able to debug the tests because the tests are run in a separate process (JVM).

You should continue to use the Cucumber plugin / IDE to debug Cucumber tests.

smartserega commented 3 years ago

so i shoud have two runners - courgette runner to debug and old runner to debug tests?

may one theread solve this problem?

prashant-ramcharan commented 3 years ago

No, you would only need 1 Courgette runner.

May I ask, why do you need to debug Cucumber test using the runner?

If you want to debug your Cucumber tests, you should use the Cucumber plugin in IntelliJ.

The Courgette runner runs all your tests in parallel but it wont allow you to debug (add a breakpoint) to individual tests running in parallel because there's no way to do this.

smartserega commented 3 years ago

When i start tests, i am starting runner. If some steps,metods (it is about java code) etd need to be debug i am using breakpoins. But Courgette runner avoid my breakpoints. And i can not understand how to debug my code. My idea about two runners looks like solution of this problem. I can use one runner for parallel test and second for debug.

About plugin, i already have Cucumber Java Plagin, but in does not help.

prashant-ramcharan commented 3 years ago

That's odd about the Cucumber Java Plugin. You should be able to put a break point in your Java code and right click the feature file and select Debug

Screenshot 2021-01-20 at 09 50 33

Yes, you can have a Cucumber runner if you like as this will be able to debug individual tests.

smartserega commented 3 years ago

oy.. thank you. This is new feature for me. Thank you again.