[ https://issues.apache.org/jira/browse/SUREFIRE-1880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17281177#comment-17281177 ]
jakob braun commented on SUREFIRE-1880: --------------------------------------- [~tibordigana] thanks for your reply. You're absolutely right. So now I reproduced the issue with 3.0.0-M5. To make it reproducabke for you, I published a minimal demo: [https://github.com/jakobbraun/SUREFIRE-1880-demo] *Expected behaviour:* test fails due to wrong assert. *Actual behaviour:* {code:java} No tests were executed! (Set -DfailIfNoTests=false to ignore this error.{code} In some runs the tests did also succeed without any error. *Tested commands:* * {code:java} mvn -Dit.test=AbstractTest$NestedTest.myTest verify {code} * {code:java} mvn -Dit.test=TestImpl$NestedTest.myTest verify {code} * {code:java} mvn -Dit.test=AbstractTest$NestedTest#myTest verify {code} * {code:java} mvn -Dit.test=TestImpl$NestedTest#myTestverify {code} > Run nested junit test from abstract class > ----------------------------------------- > > Key: SUREFIRE-1880 > URL: https://issues.apache.org/jira/browse/SUREFIRE-1880 > Project: Maven Surefire > Issue Type: Bug > Components: JUnit 5.x support > Affects Versions: 3.0.0-M3 > Reporter: jakob braun > Priority: Major > > > Consider the following Junit5 tests: > {code:java} > abstract class AbstractTest{ > @Nested > class NestedTest{ > @Test > void myTest(){ > } > } > } > class TestImpl extends AbstractTest{ > }{code} > I would like to run myTest. It seems however like this is not possible using > the failsafe plugin. > Here is what I tried: > * AbstractTest$NestedTest.myTest > * TestImpl$NestedTest.myTest > * AbstractTest$NestedTest#myTest > * TestImpl$NestedTest#myTest > If I'm doing something wrong I would be glad about some help! > -- This message was sent by Atlassian Jira (v8.3.4#803005)