Skip to content

jonkemp/qunit-phantomjs-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4d27181 · Oct 17, 2021

History

61 Commits
Oct 17, 2021
Oct 28, 2019
Dec 4, 2014
Nov 22, 2017
Dec 4, 2014
Dec 17, 2014
Jan 8, 2015
Dec 4, 2014
Oct 17, 2021
Jan 8, 2015
Oct 28, 2018
Oct 9, 2020
Oct 9, 2020
Nov 22, 2017
Nov 22, 2017
Nov 22, 2017
Nov 22, 2017

Repository files navigation

PhantomJS Runner QUnit Plugin Build Status

A PhantomJS-powered headless test runner, providing basic console output for QUnit tests.

The runner requires PhantomJS. If you don't want to deal with installing PhantomJS or using Grunt to run your tests, try node-qunit-phantomjs.

Installation

$ npm install qunit-phantomjs-runner

Usage

$ phantomjs path/to/runner.js [url-of-your-qunit-testsuite]

With options:

$ phantomjs [phantom arguments] path/to/runner.js [url-of-your-qunit-testsuite] [timeout-in-seconds] [page-properties]

Show test cases:

$ phantomjs path/to/runner-list.js [url-of-your-qunit-testsuite]

Example setting the viewport size:

$ phantomjs path/to/runner-list.js [url-of-your-qunit-testsuite] 5 '{"viewportSize":{"width":1000,"height":1000}}'

Timeout

In v2.0, a default timeout of 5 seconds was added. The timeout was optional before. This could cause tests to break, which is the reason for the major version bump.

Notes

  • Requires PhantomJS 1.6+ (1.7+ recommended).
  • QUnit plugins are also available for gulp and Grunt.

License

The MIT License

Copyright (c) 2014, Jonathan Kemp