You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tibor Digana (Jira)" <ji...@apache.org> on 2021/01/22 20:14:00 UTC

[jira] [Commented] (SUREFIRE-1880) Run nested junit test from abstract class

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

Tibor Digana commented on SUREFIRE-1880:
----------------------------------------

[~jakob.braun@exasol.com]
IMHO you should upgrade the plugin.
Pls see the versions https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-surefire-plugin
Can you check it out again and explain me the results?


> 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)