From 5c762fe356517224e1da1f47f3686b1b8308735a Mon Sep 17 00:00:00 2001 From: Arvid Gerstmann Date: Tue, 5 Nov 2024 20:01:41 +0100 Subject: [PATCH] fix: doc tests for `xtask docs` --- xtask/src/docs.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xtask/src/docs.rs b/xtask/src/docs.rs index c08f964..e637ff5 100644 --- a/xtask/src/docs.rs +++ b/xtask/src/docs.rs @@ -10,7 +10,10 @@ pub(super) fn run(_args: &DocsArgs) -> anyhow::Result<()> { let sh = Shell::new()?; // Run tests for ferrunix; these validate all code in the book. - cmd!(sh, "cargo test -p doc-tests").run()?; + { + cmd!(sh, "cargo clean -p ferrunix -p ferrunix-core -p ferrunix-macros").run()?; + cmd!(sh, "cargo test -p doc-tests").run()?; + } // Build the docs. let feature_matrix = ["default", "multithread", "tokio"];