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

karma-sonarqube-execution-reporter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-sonarqube-execution-reporter

A Karma plugin. Report execution results in sonar-unit-tests xml format.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
927
increased by51.47%
Maintainers
1
Weekly downloads
 
Created
Source

karma-sonarqube-execution-reporter

NpmLicense npm NpmVersion

Motivation

This solution is based on https://github.com/tornaia/karma-sonarqube-unit-reporter

Issue: karma-sonarqube-unit-reporter has problem with putting correct path attribute in file tag.

How to get

Just run npm install --save-dev karma-sonarqube-unit-reporter in your project directory.

Package is also available on npmjs.org https://www.npmjs.com/package/https://github.com/lisrec/karma-sonarqube-execution-reporter

How to use

  1. Import plugin to karma.conf.js in plugins section:
module.exports = function (config) {
  config.set({
    plugins: [
      require('karma-sonarqube-execution-reporter')
    ]
  })
}
  1. Add basic configuration to karma.conf.js in config.set section:
module.exports = function (config) {
  config.set({
    sonarQubeExecutionReporter: {
      sonarQubeVersion: 'LATEST',
      testPaths: ['./src/app'],
      testFilePattern: '.spec.ts',
      outputDir: './coverage',
      outputFile: 'ut_report.xml'
    },
  })
}

Avaible options - descriptions [TODO]

sonarQubeVersion

suite

outputFile

outputDir

useBrowserName

testPath

testPaths

testFilePattern

Keywords

FAQs

Package last updated on 22 Nov 2018

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