gulp-qunit-harness
Gulp plugin for running qunit tests on a local machine and in the SauceLabs environment.
Last updated 2 years ago by kirovboris .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-qunit-harness 
SYNC missed versions from official npm registry.

gulp-qunit-harness

Gulp plugin for qunit-harness

Install

$ npm install gulp-qunit-harness

Usage

var qunitHarness = require('gulp-qunit-harness');
var callbacks    = require('./test/callbacks');

var CLIENT_TESTS_SETTINGS = {
    basePath:        './test/fixtures',
    port:            2000,
    crossDomainPort: 2001,
    scripts:         [
        { src: '/sources.js', path: './lib/index.js' },
        { src: '/before-test.js', path: './test/before-test.js' }
    ],
    
    css: [ { src: 'style.css', path: './lib/style.css' } ],
    configApp: require('./test/config-qunit-server-app'),
    before: callbacks.before,
    after: callbacks.after
};

var BROWSERS = [{
    platform:    'Windows 10',
    browserName: 'chrome'
}];

var SAUCELABS_SETTINGS = {
    username:  process.env.SAUCELABS_USERNAME,
    accessKey: process.env.SAUCELABS_ACCESS_KEY,
    build:     process.env.TRAVIS_JOB_ID || '',
    tags:      [process.env.TRAVIS_BRANCH || 'master'],
    browsers:  BROWSERS,
    name:      'qunit tests',
    timeout:   300
};

gulp.task('tests', function () {
    gulp
        .src('./test/fixtures/**/*-test.js')
        .pipe(qunitHarness(CLIENT_TESTS_SETTINGS));
});

gulp.task('tests-saucelabs', function () {
    gulp
        .src('./test/fixtures/**/*-test.js')
        .pipe(qunitHarness(CLIENT_TESTS_SETTINGS, SAUCELABS_SETTINGS));
});

Current Tags

  • 1.0.2                                ...           latest (2 years ago)

18 Versions

  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.1.14                                ...           4 years ago
  • 0.1.13                                ...           4 years ago
  • 0.1.12                                ...           4 years ago
  • 0.1.11                                ...           5 years ago
  • 0.1.10                                ...           5 years ago
  • 0.1.9                                ...           5 years ago
  • 0.1.8                                ...           5 years ago
  • 0.1.7                                ...           5 years ago
  • 0.1.6                                ...           5 years ago
  • 0.1.5                                ...           5 years ago
  • 0.1.4                                ...           5 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 19
Dependencies (4)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |