Socket
Book a DemoInstallSign in
Socket

tap-reporter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tap-reporter

Format a TAP stream using a different set of reporters, mainly Mocha's and SonarQube Generic Test Data Execuion.

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
10
-52.38%
Maintainers
1
Weekly downloads
 
Created
Source

tap-reporter

Format a TAP stream using a different set of reporters, mainly Mocha's.

The main reporter outside the mocha reporters is sonarqube. This reporter generates a Generic Execution Data, complatible with SonarQube.

Disclaimer

This package is a fork of tap-mocha-reporter. We decide to fork and publish this package because it seems all the open Pull Requests does not have activity in the last years. In any case, we acknowledgement the great job of the contributors of tap-mocha-reporter <3.

Getting started

Install the package using npm:

npm i tap-reporter

Usage

You need to specify a reporter with the first argument.

tap test/*.js | tap-reporter <reporter> [--options]

Programmatically, you can use this as a transform stream.

var TSR = require('tap-reporter');

fs.createReadStream('saved-test-output.tap').pipe(TSR('sonarqube'));

Options

--output (-o)

It generates a file with the output report.

tap test/\*.js | tap-reporter sonarqube --output tests-execution.xml

The reporters type that support this option are: sonarqube, xunit, json, doc, markdown.

--prependTestFileName (-p)

This option is only available for the sonarqube report type. This adds a string to the front of the generated file name in the report useful if you run tests from within a subdirectory.

tap test/\*.js | tap-reporter sonarqube --output tests-execution.xml --prependTestFileName "src/app/tests"

Keywords

tap

FAQs

Package last updated on 14 Mar 2022

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