What is this?
This is an extension to an old version of chrome + a custom istanbul reporter. This combo gives you the power to view what JS gets evaluated on any website.
Installation
- The reason why we have to use an old version is because we are utilizing a cool API chrome used to have to preprocess any JS file before it gets evaluated by v8. This feature was reverted here.
- Download this repo and extract it somewhere
- Open a prompt in the
reporter
directory npm i
- Run the old chrome version
- Navigate to
chrome://extensions
and enable developer mode - Click "Load unpacked extension..." and select the
extension
folder from the repo
Example Usage
- Visit
http://news.ycombinator.com/
. - Open up dev tools.
- Click on the get coveragez button.
- The page will reload, wait for it to complete.
- Click on the copy button.
- Run
pbpaste > ycombinator-data
. cd reporter
.node gen_report.js ../ycombinator-data
- open
./reporter/html-report/index.html
to view the report