Skip to content

Angular-cz/karma-spec-json-reporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Karma JSON spec reporter

This is a karma reporter that will export your test data in the form of JSON but keys all describe contexts such as:

{
    "My Feature": {
        "should have a passing test": "PASSED",
        "might have a failing test": "FAILED"
    },
    "My Other Feature": {
      "should also have a passing test": "PASSED"
    }
}

Installation

npm install --save-dev karma-spec-json-reporter

In your karma.conf.js add include 'specjson' to your reporters like below:

reporters: ['specjson', 'dots'],

You will also need to set the location that you need to output your JSON file.

    specjsonReporter: {
        outputFile: "karma-specs.json"
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%