razvanz / jasmine2-reporter

Jasmine 2.0 reporter.
MIT License
6 stars 6 forks source link

Jasmine 2.0 Terminal Reporter

A cool, very customisable, terminal reporter for visualizing Jasmine 2.0 test results.

Usage

In most cases if a reference to the jasmine object is defined, the reporter can be added using the test runner api:

jasmine.getEnv().addReporter(reporter);

NodeJS (minijasminenode2)

This example is based on minijasminenode2 library. The reporter can be used with other Jasmine plugins. Check the appropriate documentation for usage details.

var miniJasmineLib = require('minijasminenode2'),
  TestsReporter = require('jasmine2-reporter').Jasmine2Reporter,
  options = {
    pendingSpec: false,
    colors: {
      pending: 'orange',
    },
    symbols: {
      pending: '*  '.strikethrough, //strikethrough is a colors module feature
    }
  };

  miniJasmineLib.addReporter(new TestsReporter(options));

Options

Note: By default the symbols are emphasized with strikethrough wich is a colors module feature. The dependancy is used for displaying the colored output, so for more options check their documentation.

Changelog

LICENCE

MIT

Screenshots