coverage-ext

Generate code coverage for any webpage

Github星跟蹤圖

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.

image

Installation

  1. Download an old version of chrome Mac / Win
  • 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.
  1. Download this repo and extract it somewhere
  2. Open a prompt in the reporter directory
  3. npm i
  4. Run the old chrome version
  5. Navigate to chrome://extensions and enable developer mode
  6. Click "Load unpacked extension..." and select the extension folder from the repo

Example Usage

  1. Visit http://news.ycombinator.com/.
  2. Open up dev tools.
  3. Click on the get coveragez button.
  4. The page will reload, wait for it to complete.
  5. Click on the copy button.
  6. Run pbpaste > ycombinator-data.
  7. cd reporter.
  8. node gen_report.js ../ycombinator-data
  9. open ./reporter/html-report/index.html to view the report

主要指標

概覽
名稱與所有者samccone/coverage-ext
主編程語言JavaScript
編程語言HTML (語言數: 2)
平台
許可證
所有者活动
創建於2016-08-20 01:24:45
推送於2016-09-16 22:17:32
最后一次提交2016-09-16 13:10:11
發布數0
用户参与
星數424
關注者數16
派生數10
提交數25
已啟用問題?
問題數5
打開的問題數1
拉請求數4
打開的拉請求數1
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?