Class NodeunitTask

    • Field Detail

      • DEFAULT_NODEUNIT_EXECUTABLE

        public static final java.lang.String DEFAULT_NODEUNIT_EXECUTABLE
      • DEFAULT_TEST_DIRECTORY

        public static final java.lang.String DEFAULT_TEST_DIRECTORY
      • DEFAULT_RESULTS_DIRECTORY

        public static final java.lang.String DEFAULT_RESULTS_DIRECTORY
      • DEFAULT_PARSE_TEST_RESULTS

        public static final boolean DEFAULT_PARSE_TEST_RESULTS
    • Constructor Detail

      • NodeunitTask

        public NodeunitTask()
    • Method Detail

      • nodeunitExecutable

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

        Example: node_modules/nodeunit/bin/nodeunit

      • testFilesAndDirectories

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

        public NodeunitTask testResultsDirectory​(@NotNull
                                                 @NotNull java.lang.String testResultsDirectory)
        Name of the directory where the test results will be stored (in JUnit XML format).
      • arguments

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