Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Map for Instrumention #776

Open
deckar01 opened this issue Mar 11, 2017 · 2 comments
Open

Source Map for Instrumention #776

deckar01 opened this issue Mar 11, 2017 · 2 comments

Comments

@deckar01
Copy link

Note: This unrelated to #59.

I am debugging the instrumented code in a browser, and it would be a lot easier if there was a source map that the browser could use to hide istanbul's instrumentation.

My use case is jasmine's web runner. Currently I either have to debug instrumented code, or rerun the tests with an alternate configuration that skips coverage. I am currently choosing to debug instrumented code, because I am switching between the coverage and the web runner often. It is faster to set break points in the test files and step into the instrumented code, than it is to switch scripts when I want to run a coverage report.

@cphoover
Copy link

+1 Yup

@deckar01
Copy link
Author

deckar01 commented Jul 20, 2018

FWIW I am migrating my unit tests to a new configuration that uses babel and it's istanbul plugin to instrument the specimen when it is imported into the test script. I loose the ability to differentiate the source code from it's dependencies for instrumentation, but I gain a much simpler config file that doesn't require a huge manifest of files. Another huge advantage is that my HTML coverage report shows the coverage of the ES6 source files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants