Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

grunt-testacular

A grunt wrapper for running tests with testacular.

gruntplugin, grunt, Testacular, nodejs, js, javascript, testing, test, remote, execution

readme

grunt-testacular

A wrapper for grunt around testacular that lets you run multiple instances of testacular.

Installation

First you need to install this plugin in your project

$ npm install grunt-testacular

then load the tasks in your Gruntfile with

grunt.loadNpmTasks('grunt-testacular');

Usage

There are two tasks provided testacular and testacularRun.

testacular

This task is the equivalent of testacular start <options> <configFile>. You can use it to do single runs or to autoWatch files and directories. To use it you need to at least specify a configFile. All other options can be defined in the configFile but you can also override some of these.

simple example

testacular: {
  unit: {
    configFile: 'config/testacular.conf.js'
  }
}

advanced example

testacular: {
  unit: {
    configFile: 'config/testacular.conf.js',
    autoWatch: true,
    browsers: [ 'Chrome', 'PhantomJS' ],
    reporters: [ 'dots' ],
    runnerPort: 9101
  }
}

testacularRun

This task is the equivalent of running testacular run <options>. There is only one option available, that is portRunner that defines the port where the server is listening.

testacularRun: {
  unit: {
    runnerPort: 9101
  }
}

Release History

v0.1.0 - First release on npm.

License

Copyright (c) 2012 Friedel Ziegelmayer

Licensed under the MIT license.

changelog

Changelog

v0.3.0

  • Bump Testacular to 0.5.10.
  • Switch to pure Javascript implementation.
  • Rename testacularServer to testacular.
  • Update for Grunt 0.4.0

v0.2.2

  • Add ability to use grunt templates.

v0.2.1

*Make Grunt 0.4.0a compatible.

v0.2.0

  • Added keepalive option.

v0.1.0

  • First release on npm.