testcafe-reporter-lm-html
v1.0.5
Published
lm TestCafe HTML reporter plugin.
Downloads
6
Maintainers
Readme
testcafe-reporter-lm-html
This is the lm-html reporter plugin for TestCafe.
Install
npm install testcafe-reporter-lm-html
Usage
When you run tests from the command line, specify the reporter name by using the --reporter
option:
testcafe chrome 'path/to/test/file.js' --reporter lm-html
When you use API, pass the reporter name to the reporter()
method:
testCafe
.createRunner()
.src('path/to/test/file.js')
.browsers('chrome')
.reporter('lm-html') // <-
.run();
If using .testcaferc.json
for the testCafe reporter configuration, don't add the reporter()
method as above, simply add the following to your config file...
{
"reporter": [
{
"name": "spec"
},
{
"name": "lm-html",
"output": "public/reports.html"
},
],
}
Cloning or Publishing Updates
- Make desired modifications
- run
gulp build
to update /lib/index - run
npm run publish
(make sure you're pointing to LM NPM)
Author
James Martineau (http://jamesmart77.github.io)