test: add script to quick check all tests

This commit is contained in:
Zixuan Chen 2022-10-21 11:32:56 +08:00
parent d7d626dd97
commit e27c94aaea
2 changed files with 7 additions and 8 deletions

View file

@ -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

View file

@ -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