Discussion:
[Cucumber] Cucumber junit @Rule integration
(too old to reply)
Oleksandr
2017-10-23 19:20:17 UTC
Permalink
Raw Message
Hi all
I am trying to integrate junit @Rule into cucumber scenario. But it didn't
work. Did somebody work with it?
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
MP Korstanje
2017-10-25 08:29:58 UTC
Permalink
Raw Message
The only supported annotations are `@ClassRule`, `@BeforeClass` and `@AfterClass` in the runner.

The documentation is not yet up todate. :|

https://github.com/cucumber/cucumber-jvm/blob/master/junit/src/main/java/cucumber/api/junit/Cucumber.java

I would however discourage the use of these rules. They are not portable between runners. If you use IDEA to run the tests they wont be triggered.
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...