rust-marker / marker

An experimental linting interface for Rust. Let's make custom lints a reality
https://rust-marker.github.io/marker/
Other
140 stars 12 forks source link

Run doc tests for binaries on CI #304

Closed Veetaha closed 10 months ago

Veetaha commented 11 months ago

Turns out a simple cargo test doesn't run doctests for binaries. It does run them for libraries though.

The solution is to separate the test command into two cargo test --all-targets (which, unintuitively, doesn't invoke doc tests https://github.com/rust-lang/cargo/issues/6669), and then run cargo test --doc.

This doesn't solve https://github.com/rust-marker/marker/issues/303 though.