temyers / cucumber-jvm-parallel-plugin

Maven plugin to help running Cucumber features in parallel
Apache License 2.0
129 stars 122 forks source link

How to use before and after class with cucumber-jvm-parallel pluging #64

Closed rahullodha85 closed 7 years ago

rahullodha85 commented 8 years ago

I want to use before and after class annotations of junit to execute clean-up actions such as close browser after test. However, the parallel class created by this plugin does not create before and after class in cucumberrunnertest file. I am able to execute clean-up as another cucumber step at the end of my tests but it will be skipped in case of a test failure. So is there a way I can always execute test clean-up regardless of test pass or failure with this plugin?

sugatmankar commented 8 years ago

Hello @rahullodha85, Please go through https://github.com/temyers/cucumber-jvm-parallel-plugin/pull/53.

Template used in "Tagwise parallel rerun" has before class after class implementation, copy repo in your local and modify it as per your requirement.

temyers commented 7 years ago

Duplicate of issue #61