google / google/pprof

Support code coverage in javascript test

Open
#797 1 comment 0 reactions 0 assignees View on GitHub
Priority: p3 type: cleanup
Dominant language
Go
Stars
9.3k
Forks
671
Avg merge
1d 11h
Merged PRs (30d)
10

Description

After fixing #791 , we should make the tests support code coverage to make the tests more useful.

If the web test is run through chromedp, then one option is to make use of the chrome devtools profiler ([profiler.startPreciseCoverage](https://chromedevtools.github.io/devtools-protocol/tot/Profiler/#method-startPreciseCoverage) method) to collect the coverage info of the javascript files, and convert it into the code coverage format (example format from the current report coverage.txt, generated by [go -coverprofile in test.sh](https://github.com/google/pprof/blob/main/test.sh): `github.com/google/pprof/profile/prune.go:152.2,152.12 1 2`)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.