1.1.2 • Published 2 years ago

karma-average-spec-time-reporter v1.1.2

Weekly downloads
52
License
MIT
Repository
github
Last release
2 years ago

karma-average-spec-time-reporter

A Karma Reporter that reports the average time per spec.

Maintenance npm GitHub Workflow Status Codecov Known Vulnerabilities

Installation

npm i -D karma-average-spec-time-reporter

Usage

// karma.conf.js
config.set({
  plugins: [require('karma-average-spec-time-reporter')],
  reporters: ['spec-time'],
});

Config

// karma.conf.js
config.set({
  specTimeReporter: {
    showLongestSpec: true,
    enableThresholds: true,
    max: 500,
    warn: 250,
  },
});
propertyexplanation
showLongestSpecShow the spec that took the longest including the browser in ran in.
enableThresholdsColor the average time based on provided thresholds. If it doesn't exceed any thresholds it's colored green when this is enabled.
maxIf the average exceeds this amount of ms the average time will be colored red. enableThresholds must be true.
warnIf the average exceeds this amount of ms the average time will be colored yellow. enableThresholds must be true.
1.1.1

2 years ago

1.1.2

2 years ago

1.1.0

3 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago