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(List suiteXmlFiles, File testSourceDirectory, TestListResolver requestedTests)
    • TestRequest

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

    • getSuiteXmlFiles

      public List<File> getSuiteXmlFiles()
      Represents suitexmlfiles that define the test-run request
      Returns:
      A list of java.io.File objects.
    • 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