Class TestParserTask


public class TestParserTask extends Task<TestParserTask,TestParserTaskProperties>
Represents task that parses test results for presentation in Bamboo build results.
  • Constructor Details

    • TestParserTask

      public TestParserTask(TestParserTaskProperties.TestType testType)
      Specify test parsing task that handles selected test engine. Supported test engines are JUnit and TestNG.
  • Method Details

    • createJUnitParserTask

      public static TestParserTask createJUnitParserTask()
      Specify test parsing task that handles JUnit test results.
    • createTestNGParserTask

      public static TestParserTask createTestNGParserTask()
      Specify test parsing task that handles TestNG test results.
    • createNUnitParserTask

      public static TestParserTask createNUnitParserTask()
      Specify test parsing task that handles NUnit test results.
    • createMochaParserTask

      public static TestParserTask createMochaParserTask()
      Specify test parsing task that handles test results of Mocha executed with 'mocha-bamboo-reporter'.
    • createMSTestParserTask

      public static TestParserTask createMSTestParserTask()
      Specify test parsing task that handles mstest test results.
    • getTestType

      public TestParserTaskProperties.TestType getTestType()
      Gets test engine supported by this task.
    • resultDirectories

      public TestParserTask resultDirectories(@NotNull @NotNull String... resultDirectories)
      Adds directories from the argument to the list of directories in which task looks for test result files.
    • defaultResultDirectory

      public TestParserTask defaultResultDirectory()
      Adds default directory to the list of directories in which task looks for test result files.

      Default directory is defined depending on the selected test engine.

    • pickUpTestResultsCreatedOutsideOfThisBuild

      public TestParserTask pickUpTestResultsCreatedOutsideOfThisBuild(@Nullable @Nullable Boolean pickUpTestResultsCreatedOutsideOfThisBuild)
      Allows/disallows the task to scan test result files created before start time of the build.
    • build

      @NotNull protected @NotNull TestParserTaskProperties build()
      Specified by:
      build in class Task<TestParserTask,TestParserTaskProperties>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Task<TestParserTask,TestParserTaskProperties>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Task<TestParserTask,TestParserTaskProperties>