Socket
Socket
Sign inDemoInstall

testcafe-reporter-junit

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    testcafe-reporter-junit

jUnit TestCafe reporter plugin.


Version published
Weekly downloads
13K
increased by6.34%
Maintainers
1
Install size
6.61 kB
Created
Weekly downloads
 

Readme

Source

testcafe-reporter-junit

Build Status

This is the fork of the xUnit reporter plugin for TestCafe.

This reporter plugin for TestCafe outputs a junit xml report that is compatible with continuous integration servers like Jenkins. The main difference between this plugin and the default xunit plugin is that in this plugin, the testcase name attribute will only contain the testcase name and any additional information such as screenshots and (unstable) flags are output to <system-out/> tag. This allows for better reporting and analysis or repeated test runs.

preview

Install

To install this reporter, you can use the following command:

npm install testcafe-reporter-junit

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 junit

When you use API, pass the reporter name to the reporter() method:

testCafe
    .createRunner()
    .src('path/to/test/file.js')
    .browsers('chrome')
    .reporter('junit') // <-
    .run();

Keywords

FAQs

Last updated on 22 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc