Socket
Socket
Sign inDemoInstall

karma-jasmine-order-reporter

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    karma-jasmine-order-reporter

Reports Jasmine order seed that was used to randomize specs in Karma Runner


Version published
Weekly downloads
17K
increased by15.73%
Maintainers
1
Install size
5.13 kB
Created
Weekly downloads
 

Readme

Source

karma-jasmine-order-reporter

Reports Jasmine order seed that was used to randomize specs in Karma Runner

npm version

Use this plugin to get information about Jasmine generated seed. It reports seed info twice:

  1. When Jasmine started:
JASMINE ORDER REPORTER: Started with seed 12345
  1. When Jasmine finished spec run:
JASMINE ORDER REPORTER: Done with seed 12345

This plugin can be useful in scenarios when you have flaky tests, that are failing only on specific seeds. Also it will report seed on Jasmine start regardless of Karma or browser crash while tests run.

Installation

$ npm install karma-jasmine-order-reporter --save-dev

or

$ yarn add karma-jasmine-order-reporter --dev

Usage

Update your karma.conf.js file as follows:

module.exports = function(config) {
  config.set({
    // code omitted for brevity
    plugins: [
      // other Karma Plugins
      'karma-jasmine-order-reporter' or `require('karma-jasmine-order-reporter')`
    ],
    reporters: [
      // other Karma Reporters
      'jasmine-order'
    ]
  });
};

License

MIT Licensed

Keywords

FAQs

Last updated on 11 Apr 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc