Gathering detailed insights and metrics for node-qunit-phantomjs
Gathering detailed insights and metrics for node-qunit-phantomjs
Gathering detailed insights and metrics for node-qunit-phantomjs
Gathering detailed insights and metrics for node-qunit-phantomjs
Run QUnit unit tests in a headless PhantomJS instance without using Grunt
npm install node-qunit-phantomjs
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
37 Stars
134 Commits
13 Forks
2 Watchers
1 Branches
8 Contributors
Updated on Jun 13, 2022
Latest Version
2.1.1
Package Id
node-qunit-phantomjs@2.1.1
Size
4.55 kB
NPM Version
6.11.3
Node Version
10.16.1
Published on
Jan 20, 2020
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
7
Run QUnit unit tests in a headless PhantomJS instance without using Grunt.
Run QUnit unit tests in a PhantomJS-powered headless test runner, providing basic console output for QUnit tests. Uses the phantomjs node module and the PhantomJS Runner QUnit Plugin.
If you're using gulp, you should take a look at the gulp-qunit plugin.
Install with npm
globally:
1$ npm install -g node-qunit-phantomjs
or locally:
1$ npm install --save-dev node-qunit-phantomjs
Via command line:
1$ node-qunit-phantomjs ./test/fixture.html
With options:
1$ node-qunit-phantomjs ./test/fixture.html --verbose 2 3$ node-qunit-phantomjs ./test/fixtures/passing.html --timeout=5 4 5$ node-qunit-phantomjs ./test/fixtures/passing.html --timeout 5
Example setting the viewport size:
1$ node-qunit-phantomjs ./test/fixture.html 5 '{"viewportSize":{"width":1000,"height":1000}}'
Or require it as a module:
1var qunit = require('node-qunit-phantomjs'); 2 3qunit('./test/fixture.html');
Verbose option to output list as test cases pass or fail:
1var qunit = require('node-qunit-phantomjs'); 2 3qunit('./test/fixture.html', { 'verbose': true });
Page option example to set the viewport size::
1var qunit = require('node-qunit-phantomjs'); 2 3qunit('./test/fixture.html', {'page': { 4 viewportSize: { width: 1280, height: 800 } 5}});
Sample gulp task:
1var gulp = require('gulp'), 2 qunit = require('node-qunit-phantomjs'); 3 4gulp.task('qunit', function() { 5 qunit('./test/fixture.html'); 6});
Opens a test runner file in PhantomJS and logs test results to the console.
Type: Boolean
Default: none
Add list as test cases pass or fail to output.
Type: Array
Default: None
These options are passed on to PhantomJS. See the PhantomJS documentation for more information.
Type: Object
Default: None
These options are passed on to PhantomJS. See the PhantomJS documentation for more information.
Type: Number
Default: 5
Pass a number or string value to override the default timeout of 5 seconds.
Type: String
Default: None
A path to a custom PhantomJS runner script. A custom runner can be used to have more control over PhantomJS (configuration, hooks, etc.). Default runner implementations are provided by the PhantomJS Runner QUnit Plugin.
MIT © Jonathan Kemp
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/28 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
security policy file not detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
40 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More