Running Serenity test from Intellij

752 views
Skip to first unread message

Przemysław Biesek

unread,
Dec 17, 2019, 8:13:40 AM12/17/19
to Serenity BDD Users Group
Hi 
I'm getting problem with running test directly from inteliji - righ click on scenario 

Each time I'm getting 

java.lang.NullPointerException: No BaseStepListener has been registered
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:900)
at net.thucydides.core.steps.StepEventBus.getBaseStepListener(StepEventBus.java:137)
at net.serenitybdd.core.reports.ReportDataSaver.andContents(ReportDataSaver.java:34)




My serenity gradle content is : 



compile "net.serenity-bdd:serenity-core:2.0.48"
compile "net.serenity-bdd:serenity-cucumber4:1.0.11"
compile "io.cucumber:cucumber-core:4.2.0"
compile "io.cucumber:cucumber-junit:4.2.0"
compile "io.cucumber:cucumber-java:4.2.0"


Przemysław Biesek

unread,
Dec 17, 2019, 8:15:04 AM12/17/19
to Serenity BDD Users Group
And main class i set to 

net.serenitybdd.cucumber.cli.Main

in Cucumber Java configuration

John Smart

unread,
Dec 17, 2019, 8:31:25 AM12/17/19
to Przemysław Biesek, Serenity BDD Users Group
This doesn't currently work due to an IntelliJ issue.

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/thucydides-users/34ebf0be-081e-4565-8af1-00ca4514ee5c%40googlegroups.com.


--
___________________________________________________
John Smart | Wakaleo Consulting  |  +44 7398 832273
Making smart teams collaborate better
http://johnfergusonsmart.com  |  john....@wakaleo.com
___________________________________________________

We love breaking down silos and helping smart teams collaborate better! Ask about our tailored on-site workshops in Agile Product Planning, BDD Requirements Discovery,  BDD, TDD and Clean Coding, and Advanced BDD Test Automation.

Need some help with Serenity BDD? Check out our Serenity BDD training and support packages here.
___________________________________________________
Reply all
Reply to author
Forward
0 new messages