nextest-rs / nextest

A next-generation test runner for Rust.
https://nexte.st
Apache License 2.0
2.03k stars 90 forks source link

Feat req: Use tarpaulin with archived tests #363

Open lcmgh opened 1 year ago

lcmgh commented 1 year ago

Hi!

I'm using the great archived test features in order to exec. my tests on a temporary CICD spawned pod in Kubernetes to test against other resources in there.

Two questions: 1) Is there a way to run those archived tests with tarpaulin to gather code coverage? 2) I run my remote tests with ./cargo-nextest nextest run --archive-file /app/test-archive.tar.zst (Cargo not installed). How would I run these tests and gather code coverage with llvm-cov?

Thanks

sunshowers commented 1 year ago

Thanks for the questions!

  1. At the moment tarpaulin hasn't been integrated with nextest yet -- see https://github.com/xd009642/tarpaulin/issues/992 for discussion. I believe nextest provides everything tarpaulin needs as machine-readable output, it's just some integration work that needs to be done on their end.
  2. Honestly I'm really not sure about this! I think it depends on whether llvm-cov runs without Cargo installed. I'd be interested to hear about what you or others find out.