karma-jasmine-order-reporter
Reports Jasmine order seed that was used to randomize specs in Karma Runner
Use this plugin to get information about Jasmine
generated seed. It reports seed info twice:
- When
Jasmine
started:
JASMINE ORDER: Started with seed 12345
- When
Jasmine
finished spec run:
JASMINE ORDER: 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 i karma-jasmine-order-reporter --save-dev
or
$ yarn add karma-jasmine-order-reporter --dev
Usage
Update your karma.conf.js
file
module.exports = function(config) {
config.set({
plugins: [
'karma-jasmine-order-reporter' or `require('karma-jasmine-order-reporter')`
],
reporters: [
'jasmine-order'
]
});
};
License
MIT Licensed