Skip to content

szimek/jasmine-spec-reporter

 
 

Repository files navigation

jasmine-spec-reporter

Build Status Coverage Status

Real time console spec reporter for jasmine behavior-driven development testing framework.

Usage

Installation

Install jasmine-spec-reporter via npm:

npm install jasmine-spec-reporter --save-dev

Configuration

Custom output

You can customize the output of the reporter yourself: see how.

Default options

{
  displayStacktrace: 'none',    // display stacktrace for each failed assertion, values: (all|specs|summary|none)
  displayFailuresSummary: true, // display summary of all failures after execution
  displayPendingSummary: true,  // display summary of all pending specs after execution
  displaySuccessfulSpec: true,  // display each successful spec
  displayFailedSpec: true,      // display each failed spec
  displayPendingSpec: false,    // display each pending spec
  displaySpecDuration: false,   // display each spec duration
  displaySuiteNumber: false,    // display each suite number (hierarchical)
  colors: {
    success: 'green',
    failure: 'red',
    pending: 'yellow'
  },
  prefixes: {
    success: '✓ ',
    failure: '✗ ',
    pending: '* '
  },
  customProcessors: []
}

Colors are displayed in the console via colors, you can see all available colors on the project page. You can also disable colors with the option: colors: false.

Compatibility with Jasmine 1.x

To use Jasmine spec reporter with Jasmine 1.x, please see jasmine1 branch.

Developement

  • install dependencies: npm install
  • launch all unit tests: npm test
  • launch an output example: npm run example
  • launch a protractor example:
npm run webdriver-update # if needed
npm run webdriver-start
npm run protractor-example

About

Console spec reporter for jasmine behavior-driven development testing framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 56.5%
  • JavaScript 43.5%