qunit-puppeteer-reporter

2.0.4 • Public • Published

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 dependencies
  • npm test checks code for stylistic consistency

Alternatives

Package Sidebar

Install

npm i qunit-puppeteer-reporter

Weekly Downloads

1

Version

2.0.4

License

Apache-2.0

Unpacked Size

5.01 kB

Total Files

6

Last publish

Collaborators

  • fnd