Skip to content

Support code coverage in javascript test #797

Description

@Louis-Ye

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 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: github.com/google/pprof/profile/prune.go:152.2,152.12 1 2)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: p3Buganizer priority - P3type: cleanupBuganizer type - Internal Cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions