I tried following way but steup and teardown seems to be executed only for
reports at the end. The setup is not called before @Before. Can you please
share the snippet which you used with Plugin, basically I want my method to
be called only once before each scenario (before @Before) in parallel run
and only once after @After
public class CucumberSetupHooksPlugin implements EventListener {
private EventHandler<TestRunStarted> setup = event -> {
log.info("CucumberSetupHooksPlugin - setup called .....");
};
private EventHandler<TestRunFinished> teardown = event -> {
log.info("CucumberSetupHooksPlugin - teardown called .....");
};
@Override
public void setEventPublisher(EventPublisher publisher) {
publisher.registerHandlerFor(TestRunStarted.class, setup);
publisher.registerHandlerFor(TestRunFinished.class, teardown);
}
}
Post by George DinwiddiePost by Chetan DewanganI see Formatter is deprecated in latest cucumber version, I could not
found the example or documentation for alternative approach. Can someone
please help me provide it.
Chetan, use Plugin instead.
- George
--
----------------------------------------------------------------------
* George Dinwiddie * http://blog.gdinwiddie.com
Software Development http://www.idiacomputing.com
Consultant and Coach http://www.agilemaryland.org
----------------------------------------------------------------------
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to a topic in the
Google Groups "Cukes" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/cukes/UKDEPov1huc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
Regards,
Chetan
--
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.