-
Notifications
You must be signed in to change notification settings - Fork 233
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
coverage analysis of bundled code #1817
Labels
Comments
The two tests I mentioned above are unit tests, not SwingSet tests. They do use |
Merged
This was referenced Nov 22, 2024
mergify bot
added a commit
that referenced
this issue
Nov 23, 2024
_incidental_ ## Description The main change in this PR is to make the code coverage reports include files that aren't tested at all (or apparently aren't due to the bundling problem #1817) It also cleans up a bunch of obsolete stuff about NESM and adds some more usage docs. ### Security Considerations none ### Scaling Considerations n/a ### Documentation Considerations Improves ### Testing Considerations I ran the commands locally to verify the reports. Once this lands they'll appear at https://agoric-sdk-coverage.netlify.app/ ### Upgrade Considerations n/a
endojs/endo#2719 could make this possible cc @kriskowal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
The coverage tool NYC
yarn test:nyc
produces output that doesn't comport with reality.To Reproduce
checkout on master, running in packages/zoe:
yarn test:nyc
produces
Expected behavior
I was a little suspicious of the last line, on
zoeSeat.js
. I set breakpoints on every basic block, and a few other lines, then ran under the debugger (in WebStorm, but your results should be consistent in any debugger.) I ran the teststest-zoeHelpersWZcf.js
, andtest-zcf.js
, and hit every single breakpoint I had set.Also notice that the line numbers given as "uncovered" in zoe.js mostly don't correspond to actual code.
The text was updated successfully, but these errors were encountered: