Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

karma-junit-reporter

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-junit-reporter

A Karma plugin. Report results in junit xml format.


Version published
Weekly downloads
551K
increased by3.17%
Maintainers
3
Weekly downloads
 
Created

What is karma-junit-reporter?

The karma-junit-reporter is a reporter for the Karma test runner that generates test results in JUnit XML format. This is particularly useful for integrating with continuous integration (CI) systems that can process JUnit XML reports, such as Jenkins, Bamboo, and others.

What are karma-junit-reporter's main functionalities?

JUnit XML Report Generation

This feature allows you to configure the Karma test runner to generate test results in JUnit XML format. The configuration specifies the output directory and file name for the generated reports.

module.exports = function(config) {
  config.set({
    reporters: ['progress', 'junit'],
    junitReporter: {
      outputDir: 'test-results', // results will be saved as $outputDir/$browserName.xml
      outputFile: 'junit-results.xml', // if included, results will be saved as $outputDir/$browserName/$outputFile
      useBrowserName: false // add browser name to report and classes names
    }
  });
};

Customizing Report Output

This feature allows you to customize various aspects of the JUnit XML report, such as the suite name, whether to include the browser name in the report, and additional properties to include in the report.

module.exports = function(config) {
  config.set({
    reporters: ['progress', 'junit'],
    junitReporter: {
      outputDir: 'test-results',
      outputFile: 'junit-results.xml',
      suite: 'mySuite', // suite will become the package name attribute in xml testsuite element
      useBrowserName: true, // add browser name to report and classes names
      properties: { // key value pair of properties to add to the <properties> section of the report
        myProperty: 'value'
      },
      xmlVersion: null // use '1' if reporting to be per SonarQube 6.2 XML format
    }
  });
};

Other packages similar to karma-junit-reporter

Keywords

FAQs

Package last updated on 07 Oct 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc