testcafe-reporter-lm-html

lm TestCafe HTML reporter plugin.

Usage no npm install needed!

<script type="module">
  import testcafeReporterLmHtml from 'https://cdn.skypack.dev/testcafe-reporter-lm-html';
</script>

README

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)