New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

krusty-jasmine-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

krusty-jasmine-reporter

A reporter used to generate jasmine to JUnit results that can be interpreted by Jenkins

0.0.1
Source
npm
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

krusty-jasmine-reporter

A reporter used to generate jasmine to JUnit results that can be interpreted by Jenkins

Important Notes

This reporter was created to be used in minijasminenodewrap. That being said, the reporter is modular and can easily fit into any other project that needs to export jasmine data to a JUnit format that Jenkins can interpret. Please refer to minijasminenodewrap for an example of how this reporter is used.

Usage

To use this reporter, simply add it as a reporter to jasmine like so:

var miniJasmineLib = require('minijasminenode2');
// define any options here
var options = {};

if (argv.reportType === 'junit') {
    options.JUnitReportSavePath = options.JUnitReportSavePath || './';
    options.JUnitReportFilePrefix = options.JUnitReportFilePrefix || 'results';
    options.JUnitReportSuiteName = options.JUnitReportSuiteName || 'Tests';
    options.JUnitReportPackageName = options.JUnitReportPackageName || 'Tests';
    miniJasmineLib.addReporter(new krustyJasmineReporter.KrustyJasmineJUnitReporter(options));
  }

The reporter is designed to output to the save path and file prefix that you specify. After running the unit tests, you should see the <options.JUnitReportFilePrefix>.xml containing your test results in a format that Jenkins can interpret.

Keywords

jasmine

FAQs

Package last updated on 24 Jul 2014

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