code coverage in your browser
$ component install yields/coverage
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>
Initialize Coverage
with name
. (component name)
Render to #coverage
(MIT)