0.1.1 • Published 7 years ago
@wext/test v0.1.1
Web Extensions - Test
A tool for testing web extensions in multiple browsers. Currently Firefox and Chrome is implemented.
Installation
npm install --save-dev @wext/testUsage
This tool uses mocha to run your tests inside of a temporary created extension. The test output will be streamed as TAP output to stdout.
Just write your tests as you would normally do with Mocha, and run wext-test specifiying which test files to run. By default it will run on all supported browsers, to run only on e.g. Firefox pass the --firefox flag.
We recommend using tap-mocha-reporter in order to get pretty test output.
"scripts": {
"test": "wext-test test/*.js | tap-mocha-reporter spec"
}For full usage, run wext-test --help.