https://github.com/movableink/testem-line-reporter
Reports one test per line, with colors
https://github.com/movableink/testem-line-reporter
Last synced: 2 months ago
JSON representation
Reports one test per line, with colors
- Host: GitHub
- URL: https://github.com/movableink/testem-line-reporter
- Owner: movableink
- License: mit
- Created: 2018-03-07T03:27:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-07T03:29:28.000Z (about 7 years ago)
- Last Synced: 2025-03-18T14:52:00.142Z (2 months ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Testem Failure Dot Reporter
Report just the interesting part of a test run: the failures and the dots.
## Installation
npm install testem-failure-dot-reporter
## Usage
Create a `testem.js` config file that sets reporter to `testem-failure-dot-reporter`:
````
var FailureDotReporter = require('testem-failure-dot-reporter');
var reporter = new FailureDotReporter();module.exports = {
"framework": "qunit",
"test_page": "tests/index.html?hidepassed&coverage",
"disable_watching": true,
"launch_in_ci": [
"PhantomJS"
],
"reporter": reporter
};
````Run tests in an Ember CLI project, reporting only failures:
ember test --config-file ~/work/project/testem.js
`bin/run-tests.js` is a sample script that uses
[sane](https://www.npmjs.com/package/sane) to watch the filesystem,
run tests on changes, parse the [blanket.js](http://blanketjs.org/) coverage
report, and output test coverage changes.node_modules/testem-failure-dot-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](https://github.com/ember-cli/ember-cli/blob/f4844e674d35a3651693954fc9baf0dbb03cc22f/lib/commands/test.js#L51)
and [testem.js parsing](https://github.com/airportyh/testem/blob/aa6e9767ca81ae031095779c733882ba42184f42/lib/config.js#L86).