Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
karma-sonarqube-execution-reporter
Advanced tools
A Karma plugin. Report execution results in sonar-unit-tests xml format.
Run npm install --save-dev karma-sonarqube-unit-reporter
in your project directory.
Package is also available on npmjs.org
plugins
section:module.exports = function (config) {
config.set({
plugins: [
require('karma-sonarqube-execution-reporter')
]
})
}
config.set
section:module.exports = function (config) {
config.set({
sonarQubeExecutionReporter: {
sonarQubeVersion: 'LATEST',
testPaths: ['./src/app'],
testFilePattern: '.spec.ts',
outputDir: './coverage',
outputFile: 'ut_report.xml'
},
})
}
sonarQubeExecutionReporter: {
sonarQubeVersion: string,
outputFile: string,
outputDir: string,
useBrowserName: boolean,
testPaths: string[],
testFilePattern: string,
}
Pass 'LATEST'
or main version of your SonarQube (pattern: '5.x'
, '6.x'
, etc).
Default value: 'LATEST'
File name for xml report (for example 'execution-report.xml'
).
Default value: 'ut_report.xml'
Relative directory for saving report file. If the directory doesn't exist will be created.
Default value: './'
(current directory)
A single path to the directory, that will be recursively scanned to find tests files.
Default value: './'
(current directory)
You can pass multiple relative directories instead of a single path, all directories will be recursively scanned for tests files. (Overrides option testPath
!)
Default value: ['./']
(current directory only)
You can pass a regex that will match your test files (for example '(.spec.js)|(.test.js)'
).
Default value: .spec.(ts|js)
0.1.1 (2018-11-22)
FAQs
A Karma plugin. Report execution results in sonar-unit-tests xml format.
We found that karma-sonarqube-execution-reporter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.