Skip to content

jamesmart77/testcafe-reporter-lm-html

Repository files navigation

testcafe-reporter-lm-html

Build Status

This is the lm-html reporter plugin for TestCafe.

preview

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

  1. Make desired modifications
  2. run gulp build to update /lib/index
  3. run npm run publish (make sure you're pointing to LM NPM)

Author

James Martineau (http://jamesmart77.github.io)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published