Class TestRequest

java.lang.Object
org.apache.maven.surefire.api.testset.TestRequest

public class TestRequest extends Object
Information about the requested test.
Author:
Kristian Rosenvold
  • Constructor Details

    • TestRequest

      public TestRequest(File testSourceDirectory, TestListResolver requestedTests, int rerunFailingTestsCount)
  • Method Details

    • getTestSourceDirectory

      public File getTestSourceDirectory()
      Test source directory, normally ${project.build.testSourceDirectory}
      Returns:
      A file pointing to test sources
    • getTestListResolver

      public TestListResolver getTestListResolver()
      A specific test request issued with -Dtest= from the command line.
      Returns:
      filter
    • getRerunFailingTestsCount

      public int getRerunFailingTestsCount()
      How many times to rerun failing tests, issued with -Dsurefire.rerunFailingTestsCount from the command line.
      Returns:
      The int parameter to indicate how many times to rerun failing tests