[ 
https://issues.apache.org/jira/browse/SUREFIRE-1849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17387640#comment-17387640
 ] 

M.P. Korstanje commented on SUREFIRE-1849:
------------------------------------------

So adding {{isRootContainer}} to the conditional does work for Cucumber but for 
JUnit Jupiter it results in an additional empty xml report. The things it could 
contain are all reported elsewhere.

https://github.com/apache/maven-surefire/pull/385

> Cucumber/JUnit5 Test Execution Regression in M4 and M5
> ------------------------------------------------------
>
>                 Key: SUREFIRE-1849
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1849
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: Jacques Burns
>            Priority: Major
>
> My JUnit 5 Cucumber tests fail to execute properly when in Surefire version 
> 3.0.0-M4 and 3.0.0-M5. Downgrading to 3.0.0-M3 solves the issue.
> I've built a small, complete example project demostrating the issue 
> [https://github.com/jmathewburns/surefire-cucumber-junit5-sscce|https://github.com/jmathewburns/surefire-cucumber-junit5-sscce].
>   You can play with the version property in the `pom.xml` in my example and 
> run the `test` goal
>  
> In M4 and M5, the Cucumber glue is recognised and the step definitions are 
> run, but failed assertions do not affect the outcome of the build. Also, true 
> assertions do not count towards the "Tests run" statistic



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to