rustwasm / wasm-pack

📦✨ your favorite rust -> wasm workflow tool!
https://rustwasm.github.io/wasm-pack/
Apache License 2.0
6.18k stars 404 forks source link

Support nextest #1326

Open gitmalong opened 1 year ago

gitmalong commented 1 year ago

💡 Feature description

cargo test does not has any test progress indicator so it would be great to see nextest integrated for better dev experience.

https://nexte.st/

According to the maintainers of nextest it should be not so difficult to integrate https://github.com/nextest-rs/nextest/issues/952

sunshowers commented 1 year ago

Maintainer of nextest here, happy to help if there are any issues! For Miri it was dead simple: https://github.com/rust-lang/miri/pull/2398

In particular, I noticed this bullet point at https://github.com/rustwasm/wasm-bindgen/blob/main/crates/test/README.md:

Running each test in its own wasm instance to avoid poisoning the environment on panic

that you would get for free with nextest.

gitmalong commented 11 months ago

https://github.com/rustwasm/wasm-pack/blob/7d6501d3cd272b7ea27034158d88bfd5c0005913/src/build/mod.rs#L128

This is where tests are built.

https://github.com/rustwasm/wasm-pack/blob/7d6501d3cd272b7ea27034158d88bfd5c0005913/src/test/mod.rs#L14

This is where teste are executed.