3 ms·
Thank you for posting! We have a rust application that we compile to wasm and run. (there's no way to run it by compiling to native code.) We have tests that co
by ChadNauseam 3y ago
Thank you for posting! We have a rust application that we compile to wasm and run. (there's no way to run it by compiling to native code.) We have tests that compile our code to wasm and run them in our execution environment. We want to get code coverage set up for our tests, but we had no idea how to do that in our environment.
This article suggests a way to have code coverage probes automatically added to various locations in our source. I think I would also need some way to read coverage information from the rust program itself, which seems straightforward. But I wonder if anyone knows if this has already been done? I know about the llvm-based coverage reports, but I don't know if they can easily be adapted to this purpose