Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No base step listener registered when trying to run the tests from feature file #20

Open
ralves20 opened this issue Dec 10, 2019 · 3 comments

Comments

@ralves20
Copy link

ralves20 commented Dec 10, 2019

Hi,

I've create a project with Serenity and cucumber 4, however, I'm not being able yet to run the tests from feature file (using IntelliJ idea) as I used to do with cucumber 2.
I can run the tests with I try direct from the CucumberTestSuite runner, but from feature file it isnt happening.
Is there an issue with serenity and cucumber 4 runner? Or am I doing something wrong?

This is the configuration of my CucumberTestRunner and the IntelliJ configuration:
image

Those are the versions that I'm using on the project
<serenity.cucumber.version>1.0.15</serenity.cucumber.version> <cucumber.version>4.2.0</cucumber.version> <webdriver.driver></webdriver.driver> <serenity.maven.version>2.0.45</serenity.maven.version>

I've tried to change versions with many different combinations, however it did not work also.

Does anyone have already had this issue?

Thanks!

@wakaleo
Copy link
Member

wakaleo commented Dec 10, 2019

I don't think this is supported for Cucumber 4 (I didn't think it still worked for Cucumber 2 as there was an IntelliJ issue, which I presume they have fixed).

@ralves20
Copy link
Author

Hi @wakaleo thank you very much!

I've follow the steps described on your blog
https://johnfergusonsmart.com/running-cucumber-serenity-feature-files-directly-intellij/
It used to work for me with cucumber 2.

As this is an IntelliJ issue I'll report it for them.

Thank you very much!

@ralves20
Copy link
Author

ralves20 commented Dec 10, 2019

And just to provide a litlle bit more of details, these are the error messages that I'm getting

[main] WARN cucumber.runtime.SerenityBackend - It looks like you are running a feature using @RunWith(Cucumber.class) instead of @RunWith(CucumberWithSerenity.class). Are you sure this is what you meant to do?
[main] ERROR net.thucydides.core.steps.StepEventBus - No base step listener registered - this is generally a bad sign.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants