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

"There were failing tests" without any tests actually running #29

Closed
JoaoGFarias opened this issue Aug 30, 2021 · 1 comment
Closed

Comments

@JoaoGFarias
Copy link

Immediately after running gradle clean test aggregate, I receive a message that there were test errors, despite no test actually running.

image

My setup is as follows:

build.gradle

image

image

And I have a test runner, which previously use @RunWith, but now it uses @serenitytest

image

Does this plugin support @CucumberOptions properly, so it will glue the code in stepDefinitions?

@fabianlinz
Copy link
Owner

fabianlinz commented Aug 30, 2021

This project is intended to allow defining scenarios with Serenity BDD directly in Junit5 Jupiter style/syntax (see also serenity-bdd/serenity-core#1039 (comment) and https://serenity-bdd.github.io/theserenitybook/latest/junit-basic.html)

Cucumber support is a different story (so @SerenityTest is not a replacement for @RunWith(CucumberWithSerenity.class)).
As far as I know Cucumber has support to run on the Junit5 Platform (by implementing a custom engine). So in contrast to this project they do not extend Junit5 Jupiter. See also https://junit.org/junit5/docs/current/user-guide/#overview-what-is-junit-5 for more details on the difference between Junit5 Platform and Jupiter, as well as cucumber/cucumber-jvm#1149 (comment)).

At the moment I think the junit-platform-engine is not supported by serenity-cucumber6. Also not sure about the state of the Junit5 engine for Cucumber.

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