Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

feat: added `just` command for fuzzing

Elijah Potterfb4d6b50e9e5
diff --git a/justfile b/justfile
index 96d71168c..54f16bfc9 100644
--- a/justfile
+++ b/justfile
@@ -268,3 +268,15 @@ bump-versions:
just format
lazygit
+
+# Enter an infinite loop of testing until a bug is found.
+fuzz mod:
+ #!/usr/bin/bash
+
+ while true
+ do
+ QUICKCHECK_TESTS=1000 cargo test {{mod}}
+ if [[ x$? != x0 ]] ; then
+ exit $?
+ fi
+ done