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

jasmine-spec-reporter

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-spec-reporter

Spec reporter for jasmine behavior-driven development framework

  • 7.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1M
decreased by-8.54%
Maintainers
1
Weekly downloads
 
Created

What is jasmine-spec-reporter?

The jasmine-spec-reporter npm package is a reporter for Jasmine that provides clear and readable output for Jasmine test results. It can be used to enhance the visual output of Jasmine test suites in the console, making it easier to understand test results at a glance.

What are jasmine-spec-reporter's main functionalities?

Spec reporting

This feature allows for real-time reporting of spec results. It can be configured to display various details such as pending specs, stack traces, and durations of specs.

const { SpecReporter } = require('jasmine-spec-reporter');

jasmine.getEnv().clearReporters();
jasmine.getEnv().addReporter(new SpecReporter({
  spec: {
    displayPending: true
  }
}));

Summary reporting

This feature provides a summary of the test results after all specs have been run, including the number of successful, failed, and pending tests. It can be customized to include or exclude the duration of the test run.

const { SpecReporter } = require('jasmine-spec-reporter');

jasmine.getEnv().clearReporters();
jasmine.getEnv().addReporter(new SpecReporter({
  summary: {
    displayDuration: false
  }
}));

Customization

The reporter can be extensively customized to fit the user's needs. Options include toggling the display of stack traces, successful tests, failed tests, and more.

const { SpecReporter } = require('jasmine-spec-reporter');

jasmine.getEnv().clearReporters();
jasmine.getEnv().addReporter(new SpecReporter({
  spec: {
    displayStacktrace: true
  },
  summary: {
    displaySuccessful: false
  }
}));

Other packages similar to jasmine-spec-reporter

Keywords

FAQs

Package last updated on 10 Apr 2021

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