Statically linked libraries and cargo test

āš“ rust    šŸ“… 2025-05-24    šŸ‘¤ surdeus    šŸ‘ļø 4      

surdeus

Warning

This post was published 36 days ago. The information described in this article may have changed.

Hello.

I would like to run my unit tests (and maybe integration tests) using a command like ./mybinary --unit-tests or --integration-tests. Do you know a way to achieve this?

I’m aware of cargo test --no-run, but it produces outputs like this: target/aarch64-unknown-linux-musl/release/deps/citadel-3571420c36fb2b8, which changes every time and is hard to embed in a pipeline.

1 post - 1 participant

Read full topic

šŸ·ļø rust_feed