You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
cucumber-jvm/examples/spring-txn isn't really run. When you run mvn package or mvn verify there, the report is as follows:
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
This means that the tests aren't really run.
(Also, there is no output from Spring.)
To Reproduce
Steps to reproduce the behavior:
git clone cucumber-jvm
cd cucumber-jvm/examples/spring-txn
mvn package
If you like, modify src/test/java/io/cucumber/examples/spring/txn/SeeMessagesStepDefinitions.java and insert org.junit.jupiter.api.Assertions.fail(); as the first statement in method there_is_a_User().
Expected behavior
Tests are run.
Context & Motivation
I wanted to use test isolation via Spring transactions in a project and couldn't get it running, so I thought of checking the Cucumber example, and that's when I figured that the Cucumber example for how to do this actually isn't run.
Screenshots
If applicable, add screenshots to help explain your problem.
Your Environment
Versions used: Cucumber 5.4.2
Operating System and version: Ubuntu 18.04.4 LTS
Build tool: Apache Maven 3.6.3
Workaround (also possible solution)
Point the Maven Surefire Plugin to version 3.0.0-M4
Add a dependency (to the normal bom, not the plugin) for org.junit.platform:junit-platform-commons:1.6.0
Now the tests are running as expected (and they pass).
The text was updated successfully, but these errors were encountered:
Describe the bug
cucumber-jvm/examples/spring-txn isn't really run. When you run
mvn package
ormvn verify
there, the report is as follows:This means that the tests aren't really run.
(Also, there is no output from Spring.)
To Reproduce
Steps to reproduce the behavior:
git clone cucumber-jvm
cd cucumber-jvm/examples/spring-txn
mvn package
If you like, modify
src/test/java/io/cucumber/examples/spring/txn/SeeMessagesStepDefinitions.java
and insertorg.junit.jupiter.api.Assertions.fail();
as the first statement in methodthere_is_a_User()
.Expected behavior
Tests are run.
Context & Motivation
I wanted to use test isolation via Spring transactions in a project and couldn't get it running, so I thought of checking the Cucumber example, and that's when I figured that the Cucumber example for how to do this actually isn't run.
Screenshots
If applicable, add screenshots to help explain your problem.
Your Environment
Workaround (also possible solution)
Now the tests are running as expected (and they pass).
The text was updated successfully, but these errors were encountered: