qunit-puppeteer-reporter
v2.0.4
Published
headless browser testing for QUnit test suites
Downloads
13
Maintainers
Readme
qunit-puppeteer-reporter
headless browser testing for QUnit test suites, using Puppeteer to report results via the command line
$ qunit-reporter http://localhost:8000/test/
loading test suite at http://localhost:8000/test/
✓ passed 18 / 18 (106 ms)
Note that this intentionally focuses only on reporting success/failure; for details and debugging you'll want to open the test suite in a regular browser.
Getting Started
$ npm install qunit-puppeteer-reporter
$ npm install -g puppeteer
Due to its size, the Puppeteer package is expected to be installed separately so it can be used across multiple projects.
$ npx qunit-reporter /path/to/tests.html
Both local file paths and URLs are supported.
(Note that npx
is merely a
shortcut
for commands in node_modules/.bin
- you might also define
npm scripts to use npm start
, for
example.)
Contributing
- ensure Node is installed
npm install
downloads dependenciesnpm test
checks code for stylistic consistency