diff --git a/justfile b/justfile
index 26ce34c8a583cc4fd31aeb856886711a400e3c7c..49175c7827fcdea907b4f685d8201fb4460467a9 100755
--- a/justfile
+++ b/justfile
@@ -260,6 +260,11 @@ test:
         just docs
     fi
 
+# Runs all doc tests
+test-docs:
+    just ensure-command cargo
+    cargo test --doc
+
 # Runs per project end-to-end tests found in a project README.md
 test-readme project:
     #!/usr/bin/env bash