Skip to content

yields/coverage

Repository files navigation

Coverage

code coverage in your browser

Installation

$ component install yields/coverage

Example

clone and run $ make example.

<!DOCTYPE html>
<html>
  <head>
    <meta charset='utf8'>
    <title>yields-lru-cache</title>
    <link rel='stylesheet' href='../build/build.css'>
    <script src='../build/build.js'></script>
    <script>require('mocha')</script>
    <script>mocha.setup({ ui: 'bdd' })</script>
  </head>
  <body>
    <div id='coverage'></div>
    <div id='mocha' style='display: none;'></div>
    <script>cov = require('coverage')('yields-lru-cache');</script>
    <script src='test.js'></script>
    <script>mocha.run(cov.render.bind(cov))</script>
  </body>
</html>

API

Coverage()

Initialize Coverage with name. (component name)

#render()

Render to #coverage

License

(MIT)

About

code coverage

Resources

Stars

Watchers

Forks

Packages

No packages published