Skip to content

Commit

Permalink
Test the documentation examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
orium committed Sep 14, 2023
1 parent eae3b69 commit 4b5ae8f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ cargo check --no-default-features --features fatal-warnings,serde --all-targets
cargo build --features fatal-warnings,serde --all-targets
echo 'Testing:'
cargo test --features fatal-warnings,serde --all-targets --benches
# Weirdly, the `cargo test ... --all-targets ...` above does not run the tests in the documentation, so we run the
# doc tests like this.
# See https://github.com/rust-lang/cargo/issues/6669.
echo 'Testing doc:'
cargo test --features fatal-warnings,serde --doc
echo 'Checking documentation:'
cargo doc --features fatal-warnings,serde --no-deps --document-private-items

Expand Down

0 comments on commit 4b5ae8f

Please sign in to comment.