Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

karma-spec-reporter-2

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-spec-reporter-2

A Karma plugin. Report all spec-results to console - based on karma-spec-reporter.

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
1.1K
-0.63%
Maintainers
1
Weekly downloads
 
Created
Source

karma-spec-reporter-2

Test reporter, that prints detailed results to console (similar to mocha's spec reporter). Based on the npm install karma-spec-reporter - but with few changes

Installation

  $ npm install karma-spec-reporter-2

There are few configuration that you could apply to the reporter.

//karma.conf.js
...
  config.set({
    ...
      reporters: ["spec"],
      specReporter: {

        // When test faild - report it at the end of all tests 
        lateReport:      true,

        // Max Error log lines to display
        maxLogLines:     5,

        // Don't show faild tests
        suppressFaild:   false,

        // Don't show successful tests
        suppressSuccess: false,

        // Don't show skipped tests
        suppressSkipped: false,

        // Every test that is more slower than the slowest test is mark as slow
        slowTestTime: 40,
        fastTestTime: 20

      },
      plugins: ["karma-spec-reporter"],
    ...

Take a look at the karma-spec-reporter-example repository to see the reporter in action.

Keywords

karma-plugin

FAQs

Package last updated on 18 Jun 2015

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