1.12.0 • Published 7 years ago

mocha-grommet-reporter v1.12.0

Weekly downloads
226
License
MIT
Repository
github
Last release
7 years ago

Mocha Grommet Reporter

This is a custom reporter for the Mocha test framework written in React/Grommet. The two current views are the Dashboard and Details View, which include: 1. total pass/fail ratio for all suites/tests 1. time of last completed test 1. sorted test results 1. alert for timed out/slow tests 1. duration of each test 1. errors/stack trace from from failed tests 1. timeout information 1. visually appealing widgets

This reporter was designed mainly to be displayed as a status board over a respective workspace. The Details View is included to provide and expand on the functionality of any standard mocha reporter.

Screenshots:

Overhead Dashboard

Developer Dashboard

npm install mocha-grommet-reporter

Place <div id='mocha'></div> where you want the application to run. NOTE: div MUST have id='mocha'

   <!DOCTYPE html>
   <html lang="en">
     <head>
       <title>Mocha API Checker</title>
     </head>
     <body>
   
       <div id='mocha'></div>
       <script src='/bundle.js'></script>
   
     </body>
   </html>

Create index.js in the source directory and place the following code inside:

   import mochaGrommetReporter from 'mocha-grommet-reporter';
   import { Mocha } from 'mocha/mocha.js';

   mocha.setup({
     ui: 'bdd',
     slow: 1500,
     timeout: 10000,
     reporter: mochaGrommetReporter
   });

   // place test files here
   require('./index.test.js');

   mocha.run();

To test:

Use the mocha-grommet-reporter-example to test

Special Thanks to Tyr Johanson for his wisdom, insight and guidance throughout with this project.

1.12.0

7 years ago

1.11.4

7 years ago

1.11.2

7 years ago

1.11.1

7 years ago

1.11.0

7 years ago

1.10.8

7 years ago

1.10.7

7 years ago

1.10.6

7 years ago

1.10.5

7 years ago

1.10.4

7 years ago

1.10.3

7 years ago

1.10.2

7 years ago

1.10.0

7 years ago

1.9.10

7 years ago

1.9.9

7 years ago

1.9.8

7 years ago

1.9.7

7 years ago

1.9.6

7 years ago

1.9.5

7 years ago

1.9.4

7 years ago

1.9.3

7 years ago

1.9.2

7 years ago

1.9.1

7 years ago

1.8.1

7 years ago

1.7.4

7 years ago

1.7.3

7 years ago

1.7.2

7 years ago

1.6.2

7 years ago

1.5.10

7 years ago

1.4.10

7 years ago

1.4.8

7 years ago

1.3.8

7 years ago

1.2.8

7 years ago

1.2.7

7 years ago

1.2.6

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

1.0.0

7 years ago