Fork me on GitHub

Plugin Documentation

Goals available for this plugin:

Goal Description
casperjs-runner:help Display help information on casperjs-runner-maven-plugin.
Call mvn casperjs-runner:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
casperjs-runner:integration-test Runs JavaScript and/or CoffeScript test files on CasperJS instance, but in "integration-test" mode. IE does not fails the build if there are test errors, letting the verify Mojo doing it.
casperjs-runner:test Runs JavaScript and/or CoffeScript test files on CasperJS instance
casperjs-runner:verify Verifies that there was no test failure during the integration-test Mojo.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 3.0.5
JDK 1.6
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>com.github.casperjs</groupId>
          <artifactId>casperjs-runner-maven-plugin</artifactId>
          <version>1.0.7-SNAPSHOT</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>com.github.casperjs</groupId>
        <artifactId>casperjs-runner-maven-plugin</artifactId>
        <version>1.0.7-SNAPSHOT</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"