https://github.com/jonkemp/qunit-phantomjs-runner
A PhantomJS-powered headless test runner for QUnit
https://github.com/jonkemp/qunit-phantomjs-runner
phantomjs qunit qunit-phantomjs-runner
Last synced: 11 months ago
JSON representation
A PhantomJS-powered headless test runner for QUnit
- Host: GitHub
- URL: https://github.com/jonkemp/qunit-phantomjs-runner
- Owner: jonkemp
- License: mit
- Created: 2014-02-03T02:22:49.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2021-10-17T03:54:19.000Z (over 4 years ago)
- Last Synced: 2025-03-24T08:05:53.072Z (over 1 year ago)
- Topics: phantomjs, qunit, qunit-phantomjs-runner
- Language: JavaScript
- Size: 327 KB
- Stars: 69
- Watchers: 2
- Forks: 29
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PhantomJS Runner QUnit Plugin 
> A PhantomJS-powered headless test runner, providing basic console output for QUnit tests.
The runner requires [PhantomJS](http://phantomjs.org/). If you don't want to deal with installing PhantomJS or using Grunt to run your tests, try [node-qunit-phantomjs](https://github.com/jonkemp/node-qunit-phantomjs).
## Installation
```bash
$ npm install qunit-phantomjs-runner
```
## Usage
```bash
$ phantomjs path/to/runner.js [url-of-your-qunit-testsuite]
```
With options:
```bash
$ phantomjs [phantom arguments] path/to/runner.js [url-of-your-qunit-testsuite] [timeout-in-seconds] [page-properties]
```
Show test cases:
```bash
$ phantomjs path/to/runner-list.js [url-of-your-qunit-testsuite]
```
Example setting the viewport size:
```bash
$ 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](http://phantomjs.org/) 1.6+ (1.7+ recommended).
- QUnit plugins are also available for [gulp](https://github.com/jonkemp/gulp-qunit) and [Grunt](https://github.com/gruntjs/grunt-contrib-qunit).
## License
The MIT License
Copyright (c) 2014, Jonathan Kemp