From e27c94aaea9818883ec1f74f08b9122dae21704d Mon Sep 17 00:00:00 2001 From: Zixuan Chen Date: Fri, 21 Oct 2022 11:32:56 +0800 Subject: [PATCH] test: add script to quick check all tests --- crates/loro-core/justfile | 2 +- justfile | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/crates/loro-core/justfile b/crates/loro-core/justfile index 138c04e2..2ff73a0e 100644 --- a/crates/loro-core/justfile +++ b/crates/loro-core/justfile @@ -21,7 +21,7 @@ fuzz-yata-long: cargo fuzz run yata -- -max_total_time=300 -max_len=4000 -jobs=2 quick-fuzz: - cargo fuzz run single_client_text -- -max_total_time=3 -max_len=1000 & cargo fuzz run yata -- -max_total_time=3 -max_len=1000 + cargo fuzz run single_client_text -- -max_total_time=10 -max_len=1000 & cargo fuzz run yata -- -max_total_time=10 -max_len=1000 flame: cargo flamegraph --example test --features=fuzzing --root diff --git a/justfile b/justfile index 61cac2b8..fd5c6a2f 100644 --- a/justfile +++ b/justfile @@ -4,13 +4,12 @@ build: test *FLAGS: RUST_BACKTRACE=full cargo nextest run {{FLAGS}} -# test with proptest -test-prop *FLAGS: - RUST_BACKTRACE=full RUSTFLAGS='--cfg proptest' cargo nextest run {{FLAGS}} - -# test with slower proptest -test-slowprop *FLAGS: - RUST_BACKTRACE=full RUSTFLAGS='--cfg slow_proptest' cargo nextest run {{FLAGS}} +test-all: + cargo nextest run & + just quickfuzz + +quickfuzz: + cd crates/loro-core && just quick-fuzz check: cargo clippy