Skip to content

Support for Wasm? #221

@mfreeborn

Description

@mfreeborn

I'd really like to be able to run my Web Assembly tests and get coverage reports for them.

First issue, can I specify a custom binary to run e.g. instead of cargo test, my test command is wasm-pack test --node.

Second issue, I get a compile error when trying to build on wasm32-unknown-unknown:

$ cargo llvm-cov --target wasm32-unknown-unknown
info: when --target option is used, coverage for proc-macro and build script will not be displayed because cargo does not pass RUSTFLAGS to them
   Compiling cfg-if v1.0.0
   Compiling scoped-tls v1.0.0
   Compiling ag-grid-derive v0.1.0
error[E0463]: can't find crate for `profiler_builtins`
  |
  = note: the compiler may have been built without the profiler runtime

For more information about this error, try `rustc --explain E0463`.
error: could not compile `cfg-if` due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `scoped-tls` due to previous error

Is the above possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: A new feature or an improvement for an existing oneC-upstream-bugCategory: This is a bug of compiler or dependencies (the fix may require action in the upstream)help wantedCall for participation: Help is requested to fix this issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions