Class ClojureRunTestWithJUnitMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    ClojureRunTestMojo

    @Mojo(name="test-with-junit",
          defaultPhase=TEST,
          requiresDependencyResolution=TEST)
    public class ClojureRunTestWithJUnitMojo
    extends AbstractClojureCompilerMojo
    • Field Detail

      • skip

        @Parameter(required=true,
                   property="maven.test.skip",
                   defaultValue="false")
        private boolean skip
        Flag to allow test compiliation to be skipped.
      • skipTests

        @Parameter(required=true,
                   property="skipTests",
                   defaultValue="false")
        private boolean skipTests
        Flag to allow test execution to be skipped.
      • testScript

        @Parameter
        private java.lang.String testScript
        The main clojure script to run
      • testOutputDirectory

        @Parameter(defaultValue="${project.build.directory}/test-reports",
                   property="clojure.testOutputDirectory")
        private java.lang.String testOutputDirectory
        Output directory for test results
      • xmlEscapeOutput

        @Parameter(defaultValue="true",
                   property="clojure.xmlEscapeOutput")
        private boolean xmlEscapeOutput
        Whether to XML escape non-report output sent to *out*
      • test

        @Parameter(property="test")
        private java.lang.String test
        Provide a comma separated list of tests to run, instead of trying to run all of the test.
    • Constructor Detail

      • ClojureRunTestWithJUnitMojo

        public ClojureRunTestWithJUnitMojo()
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • generateConfig

        protected void generateConfig​(java.io.PrintWriter writer,
                                      NamespaceInFile[] ns)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getProps

        protected java.util.Properties getProps​(NamespaceInFile[] ns)
      • generateTestScript

        private void generateTestScript​(java.io.PrintWriter writer)
                                 throws java.io.IOException
        Throws:
        java.io.IOException