Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

com.github.linsolas:casperjs-runner-maven-plugin

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

com.github.linsolas:casperjs-runner-maven-plugin

Runs JavaScript and/or CoffeScript test files on CasperJS instance

  • 1.0.1
  • Source
  • Maven
  • Socket score

Version published
Maintainers
2
Source

casperjs-runner-maven-plugin

This project aims to run CasperJS tests in a Maven build.

System requirements

This plugin has been tested on an environment where PhantomJS (v1.9.0) and CasperJS (v1.0.2) where installed.

Build

Download the sources, and build the plugin using the mvn clean install command. You can build this plugin using Maven 2.2.x or Maven 3.x, and a JDK 1.6.

Usage

Add, in your <build><plugins> part of your pom.xml file the following part:

    <plugin>
        <groupId>com.github.linsolas</groupId>
        <artifactId>casperjs-runner-maven-plugin</artifactId>
        <version>1.0.0</version>
        <configuration>
            <!-- see below -->
        </configuration>
    </plugin>

Configuration

The CasperJS Runner Maven plugin can be configured with the following options:

NameDescriptionDefault valueMandatory
casperjs.executableComplete path of the executable for CasperJS.NoneYes
tests.directoryDirectory where the tests to execute are stored.NoneYes
ignoreTestFailuresDo we ignore the tests failures. If yes, the plugin will not fail at the end if there was tests failures.falseNo
include.javascriptA flag to indicate if the *.js found in tests.directory should be executed.trueNo
include.coffeescriptA flag to indicate if the *.coffee found in tests.directory should be executed.trueNo
verboseSet the *plugin* to be verbose during its execution. It will not impact the verbosity of the CasperJS execution.falseNo

You can also add in the <configuration> part several elements that will be set as CasperJ options:

NameDescription
preSet the value for the CasperJS option --pre=[pre-test.js]: will add the tests contained in pre-test.js before executing the test suite.
postSet the value for the CasperJS option --post=[post-test.js]: will add the tests contained in post-test.js after having executed the whole test suite.
includesSet the value for the CasperJS option --includes=[foo.js,bar.js]: will includes the foo.js and bar.js files before each test file execution.
xunitSet the value for the CasperJS option --xunit=[filename]: will export test suite results in the specified xUnit XML file.
logLevelSet the value for the CasperJS option --log-level=[logLevel]: sets the logging level (see http://casperjs.org/logging.html).
directSet the value for the CasperJS option --direct: will output log messages directly to the console.
failFastSet the value for the CasperJS option --fail-fast: will terminate the current test suite as soon as a first failure is encountered.
engineCasperJS 1.1 and above
Set the for the CasperJS option --engine=[engine]: will change the rendering engine (phantomjs or slimerjs)

TODO

Here is a list of things that should be done to make this plugin awesome:

  • Set default values for some parameters (tests.directory for example)
  • Manage sub-directories where files are included
  • Manage a list of excludes / includes for the tests to run

Issues / Enhancements

If you encounter issues or think about any kind of enhancements, you can add them in the adequate section of the project. Do not hesitate also to make Push Requests if you want to enhance this project.

License

This plugin is licensed with Apache License 2.0

FAQs

Package last updated on 18 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc