Class MochaRunnerTask

    • Field Detail

      • DEFAULT_MOCHA_EXECUTABLE

        public static final java.lang.String DEFAULT_MOCHA_EXECUTABLE
      • DEFAULT_TEST_DIRECTORY

        public static final java.lang.String DEFAULT_TEST_DIRECTORY
      • DEFAULT_PARSE_TEST_RESULTS

        public static final boolean DEFAULT_PARSE_TEST_RESULTS
    • Constructor Detail

      • MochaRunnerTask

        public MochaRunnerTask()
    • Method Detail

      • mochaExecutable

        public MochaRunnerTask mochaExecutable​(@NotNull
                                               @NotNull java.lang.String mochaExecutable)
        Specify path to the Mocha executable for this task. Path must be relative to the working directory.

        Example: node_modules/mocha/bin/mocha

      • testFilesAndDirectories

        public MochaRunnerTask testFilesAndDirectories​(@NotNull
                                                       @NotNull java.lang.String testFilesAndDirectories)
        Specify files and/or directories containing Mocha tests. You can specify multiple files and directories separated by a space. Defaults to 'test/' directory.
      • parseTestResults

        public MochaRunnerTask parseTestResults​(boolean parseTestResults)
        Whether this task should parse test results produced by Mocha. Defaults to true. If set to false, a subsequent MochaParserTask should be used to gather the results.
      • arguments

        public MochaRunnerTask arguments​(@Nullable
                                         @Nullable java.lang.String arguments)
        Additional command line arguments to pass to Mocha. Be aware that some options may already be set by this task configuration.