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

Courgette Hooks #349

Closed MadhuQAAutomation closed 2 years ago

MadhuQAAutomation commented 2 years ago

Hi Prashant - I am using Courgette Test Runner for executing our project in parallel. We have have set of feature files(environment setup related) that are to be executed before any of the other feature files/actual test begin in parallel. Is this achievable using courgette Hooks?

prashant-ramcharan commented 2 years ago

Hello,

Yes, you can run setup code using Courgette hooks but you cannot run a Cucumber feature file within a Courgette hook.

You need to call the Java code that does the environment setup in a Courgette hook.

MadhuQAAutomation commented 2 years ago

Ok. Thank you!

On Tue, Aug 23, 2022 at 3:53 PM Prashant Ramcharan @.***> wrote:

Hello,

Yes, you can run setup code using Courgette hooks but you cannot run a Cucumber feature file within a Courgette hook.

You need to call the Java code that does the environment setup in a Courgette hook.

— Reply to this email directly, view it on GitHub https://github.com/prashant-ramcharan/courgette-jvm/issues/349#issuecomment-1223868989, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWIEGE74MX6VGGOB7QH7RUDV2SRC3ANCNFSM57EM3QTQ . You are receiving this because you authored the thread.Message ID: @.***>