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

jasmine-reporters

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-reporters

Reporters for the Jasmine BDD Framework

  • 2.5.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is jasmine-reporters?

The jasmine-reporters npm package provides a set of reporters for the Jasmine testing framework. These reporters can generate test results in various formats, such as JUnit XML, TAP, and more, which can be used for continuous integration and other reporting purposes.

What are jasmine-reporters's main functionalities?

JUnit XML Reporter

The JUnit XML Reporter generates test results in JUnit XML format, which is commonly used by CI tools like Jenkins. The code sample demonstrates how to configure and add the JUnit XML Reporter to a Jasmine test suite.

const Jasmine = require('jasmine');
const JasmineReporters = require('jasmine-reporters');

const jasmine = new Jasmine();
jasmine.loadConfigFile('spec/support/jasmine.json');

const junitReporter = new JasmineReporters.JUnitXmlReporter({
  savePath: 'test_results',
  consolidateAll: false
});
jasmine.addReporter(junitReporter);

jasmine.execute();

TAP Reporter

The TAP Reporter outputs test results in the Test Anything Protocol (TAP) format. This format is useful for integrating with TAP consumers. The code sample shows how to set up the TAP Reporter in a Jasmine test suite.

const Jasmine = require('jasmine');
const JasmineReporters = require('jasmine-reporters');

const jasmine = new Jasmine();
jasmine.loadConfigFile('spec/support/jasmine.json');

const tapReporter = new JasmineReporters.TapReporter();
jasmine.addReporter(tapReporter);

jasmine.execute();

TeamCity Reporter

The TeamCity Reporter formats test results for integration with JetBrains TeamCity. The code sample illustrates how to add the TeamCity Reporter to a Jasmine test suite.

const Jasmine = require('jasmine');
const JasmineReporters = require('jasmine-reporters');

const jasmine = new Jasmine();
jasmine.loadConfigFile('spec/support/jasmine.json');

const teamCityReporter = new JasmineReporters.TeamCityReporter();
jasmine.addReporter(teamCityReporter);

jasmine.execute();

Other packages similar to jasmine-reporters

FAQs

Package last updated on 04 Nov 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

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