Class MochaParserTask


@Deprecated public class MochaParserTask extends Task<MochaParserTask,MochaParserTaskProperties>
Deprecated.
Parse test results of Mocha executed with 'mocha-bamboo-reporter'.

For convenience, it's advised to use MochaRunnerTask which is capable of both executing tests and parsing test results. MochaParserTask should only be used if the tests were executed in a different manner.

See Also:
  • Field Details

    • DEFAULT_TEST_FILE_PATTERN

      public static final String DEFAULT_TEST_FILE_PATTERN
      Deprecated.
  • Constructor Details

    • MochaParserTask

      public MochaParserTask()
      Deprecated.
  • Method Details

    • testFilePattern

      public MochaParserTask testFilePattern(@NotNull @NotNull String testFilePattern)
      Deprecated.
      Ant-style pattern of test results file to parse. If not set, the default value of 'mocha.json' will be used.
    • workingSubdirectory

      @Deprecated public MochaParserTask workingSubdirectory(@Nullable @Nullable String workingSubdirectory)
      Deprecated.
      since 6.3 the working subdirectory should be part of testFilePattern.

      For example, the following code:

      
       new MochaParserTask()
           .workingSubdirectory("mocha/")
           .testFilePattern("*.json");
       

      can be simplified to:

      
       new MochaParserTask()
           .testFilePattern("mocha/*.json");
       
      Specify an alternative subdirectory as working directory for the task.
    • pickUpTestResultsCreatedOutsideOfThisBuild

      public MochaParserTask pickUpTestResultsCreatedOutsideOfThisBuild(boolean pickUpTestResultsCreatedOutsideOfThisBuild)
      Deprecated.
      When set to true, files created before the current build was started will be analyzed as valid tests results.
    • build

      @NotNull protected @NotNull MochaParserTaskProperties build()
      Deprecated.
      Specified by:
      build in class Task<MochaParserTask,MochaParserTaskProperties>