mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-02 11:06:14 +00:00
test: add script to quick check all tests
This commit is contained in:
parent
d7d626dd97
commit
e27c94aaea
2 changed files with 7 additions and 8 deletions
|
@ -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
|
||||
|
|
13
justfile
13
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
|
||||
|
|
Loading…
Reference in a new issue