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

gulp-qunit-harness

Package Overview
Dependencies
Maintainers
9
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-qunit-harness

Gulp plugin for running qunit tests on a local machine and in the SauceLabs environment.

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
188
increased by18.24%
Maintainers
9
Weekly downloads
 
Created
Source

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));
});

FAQs

Package last updated on 12 Jan 2021

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