Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1880

Run nested junit test from abstract class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-M3, 3.0.0-M5
    • None
    • JUnit 5.x support
    • None

    Description

       

      Consider the following Junit5 tests:

      abstract class AbstractTest{
      
        @Nested
      
        class NestedTest{
      
          @Test
      
          void myTest(){
      
          }
      
        }
      
      }
      
      class TestImpl extends AbstractTest{
      
      }

      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!

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            jakob.braun@exasol.com jakob braun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: