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

Would appreciate a guide to integration with codecov.io for non-NEAR projects #5

Open
scouten-adobe opened this issue Aug 22, 2024 · 0 comments

Comments

@scouten-adobe
Copy link

scouten-adobe commented Aug 22, 2024

I'd like to generate code coverage for a WASM(*) project that is not using the NEAR framework and post those results to codecov.io.

The README and other documentation says (cryptically) ...

    // Invoke a function to preserve the coverage data or use `println!` for debugging.

... but provides no example for what function to call or where to place the file.

From what I can tell, the result of calling cargo +nightly wasmcov test -- --all-features generates no .profraw files or .lcov files and I can't find any supporting documentation to tell me how to generate those.

Please review the output of the following CI test run (https://github.com/scouten-adobe/TEMP-c2pa-crypto/actions/runs/10513025492/job/29127668743), specifically the "Unit tests (WASM, nightly, code coverage)" job, where I've run the above step and then dumped the contents of the target and wasmcov trees afterwards.

What am I missing?

(*) Also runs on other non-WASM platforms. Coverage reports there are working as intended.

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

1 participant