Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michaelplazek/mocha-grommet-chart
A dynamic time log of mocha test data
https://github.com/michaelplazek/mocha-grommet-chart
Last synced: 9 days ago
JSON representation
A dynamic time log of mocha test data
- Host: GitHub
- URL: https://github.com/michaelplazek/mocha-grommet-chart
- Owner: michaelplazek
- Created: 2017-07-31T15:18:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-03T21:20:35.000Z (over 7 years ago)
- Last Synced: 2024-10-18T01:58:30.165Z (28 days ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/mocha-grommet-chart
- Size: 115 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mocha Grommet Chart
This is a dynamic chart that plots the last 50 test results by percentage of failed/slow tests out of total tests.
Data is stored in local storage at the end of every run and retrieved at the start of each run.## Screenshot
![Mocha Chart](http://i.imgur.com/8TRZZaF.png)
## To run
```
npm install mocha-grommet-chart
```Add div to html page where you want chart to render
```
```Import module and use as reporter option in mocha config in your index.js
```
import mochaChart from 'mocha-grommet-chart';import { Mocha } from 'mocha/mocha.js';
mocha.setup({
ui: 'bdd',
slow: 1500,
timeout: 10000,
reporter: mochaChart
});// place tests here
require('./index.test.js');mocha.run();
```Then run
```
npm start
```