Spec style reporter for your tape test output in the browser.
npm install browserify-tape-spec --save-dev
In your markup you'll need an element to stream output to. In this example I have a
<div id=out> for that purpose:
js we grab a reference to the reporter, invoke it with the element id we wish to stream the results to, and pass the resulting function to tape's pipe.
var test =report =test
Thats it! You can see a live example here.
A few ideas I haven't done just yet (and would love your help).
- Scope the css to the passed in element
- Mobile web friendly (viewport inject) the output
- Output for comments/plan/todo