Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run doc tests for binaries on CI #304

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

Veetaha
Copy link
Contributor

@Veetaha Veetaha commented Oct 22, 2023

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 rust-lang/cargo#6669), and then run cargo test --doc.

This doesn't solve #303 though.

@Veetaha Veetaha requested a review from xFrednet October 22, 2023 12:21
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 rust-lang/cargo#6669), and then run `cargo test --doc`
@xFrednet xFrednet added this pull request to the merge queue Oct 23, 2023
Merged via the queue into rust-marker:master with commit b08a183 Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants