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

Running single test method does not work for junit Parameterized class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.0-M3
    • None
    • None
    • None

    Description

      Running single test method does not work for junit Parameterized class. It does not recognize the test method and shows no tests run.

      mvn -Dtest=TestRMRestart#testRMStateStoreDispatcherDrainedOnRMStop test
      
      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [INFO] Running org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart
      [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.134 s - in org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart
      [INFO] 
      [INFO] Results:
      [INFO] 
      [INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
      

      Code Snippet:

      @RunWith(Parameterized.class)
      class TestRMRestart
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            prabhujoseph Prabhu Joseph
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: