testem-failure-reporter

Reporter for testem that outputs only failed tests

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
testem-failure-reporter
1.0.49 years ago9 years agoMinified + gzip package size for testem-failure-reporter in KB

Readme

Testem Failure Reporter
Report just the interesting part of a test run: the failures.

Installation

npm install testem-failure-reporter

Usage

Create a testem.js config file that sets reporter to testem-failure-reporter:
```` var FailureReporter = require('testem-failure-reporter'); var reporter = new FailureReporter();
module.exports = { "framework": "qunit", "testpage": "tests/index.html?hidepassed&coverage", "disablewatching": true, "launchinci":
"PhantomJS"
, "reporter": reporter }; ````
Run tests in an Ember CLI project, reporting only failures:
ember test --config-file ~/work/project/testem.js
ember test screenshot
bin/run-tests.js is a sample script that uses sane to watch the filesystem, run tests on changes, parse the blanket.js coverage report, and output test coverage changes.
node_modules/testem-failure-reporter/bin/run-tests.js

Notes

This currently doesn't work with ember test --module some-module because Ember CLI rewrites the testem.json file to accomplish this, and doesn't support the testem.js file.
See Ember CLI config rewriting and testem.js parsing.