Socket
Socket
Sign inDemoInstall

testcafe-reporter-xunit

Package Overview
Dependencies
0
Maintainers
7
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    testcafe-reporter-xunit

xUnit TestCafe reporter plugin.


Version published
Weekly downloads
216K
decreased by-19.22%
Maintainers
7
Install size
6.66 kB
Created
Weekly downloads
 

Package description

What is testcafe-reporter-xunit?

The testcafe-reporter-xunit package is a reporter plugin for TestCafe that outputs test results in the xUnit format. This format is widely used for integrating test results with continuous integration (CI) systems and other tools that support xUnit.

What are testcafe-reporter-xunit's main functionalities?

Generate xUnit Report

This code sample demonstrates how to create a custom reporter using the testcafe-reporter-xunit package. The reporter outputs the start and end of the test run, as well as the status of each test and fixture.

module.exports = function () {
  return {
    noColors: true,
    reportTaskStart (startTime, userAgents, testCount) {
      console.log('Starting test run...');
    },
    reportFixtureStart (name, path) {
      console.log(`Fixture: ${name}`);
    },
    reportTestDone (name, testRunInfo) {
      console.log(`Test: ${name} - ${testRunInfo.skipped ? 'skipped' : 'done'}`);
    },
    reportTaskDone (endTime, passed, warnings) {
      console.log('Test run complete.');
    }
  };
};

Other packages similar to testcafe-reporter-xunit

Readme

Source

testcafe-reporter-xunit

Build Status

This is the xUnit reporter plugin for TestCafe.

preview

Install

This reporter is shipped with TestCafe by default. In most cases, you won't need to install it separately.

However, if you need to install this reporter, you can use the following command.

npm install testcafe-reporter-xunit

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 xunit

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

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

Author

Developer Express Inc. (https://devexpress.com)

Keywords

FAQs

Last updated on 07 Jul 2023

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc