Class TestParserTask

    • Constructor Detail

      • TestParserTask

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

      • 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.
      • resultDirectories

        public TestParserTask resultDirectories​(@NotNull
                                                @NotNull java.lang.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 java.lang.Boolean pickUpTestResultsCreatedOutsideOfThisBuild)
        Allows/disallows the task to scan test result files created before start time of the build.