@bigab/gulp-testee

0.0.2 • Public • Published

gulp-testee

A gulp plugin for running testee on test pages and piping the results somewhere

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev @bigab/gulp-testee

Information

Package @bigab/gulp-testee
Description Test Runner, gather results
Node Version >= 0.10

Usage

var gulpTestee = require('@bigab/gulp-testee');

gulp.task('tests', function() {
  return gulp.src('./tests/**/*test.html')
          .pipe( gulpTestee({ browsers: ['firefox']}) )
          .pipe(gulp.dest('./tests/results/'))
});

This will run each test page, running Jasmine, QUnit or Mocha, in the browsers specified (must be on the machine), and collect the results, displaying them on the command line and piping a JSON representation of the results forward.

Options are passed on into testee

var gulpTestee = require('@bigab/gulp-testee');

gulp.task('tests', function() {
  return gulp.src('./tests/**/*test.html')
    .pipe( gulpTestee({
      browsers: ['phantom', 'firefox', 'safari'],
      reporter: 'Spec',
      coverage: {
          reporters: ['html'],
          ignore: ['node_modules']
      }
    }) );
});

defaults:
browsers: ['phantom']
outputFile: 'tests.json'
reporter: 'Dot'

LICENSE

(MIT License)

Copyright (c) 2015 Adam Barrett "BigAB" bigab@live.ca

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Readme

Keywords

Package Sidebar

Install

npm i @bigab/gulp-testee

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • bigab