mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-06 12:25:03 +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
|
cargo fuzz run yata -- -max_total_time=300 -max_len=4000 -jobs=2
|
||||||
|
|
||||||
quick-fuzz:
|
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:
|
flame:
|
||||||
cargo flamegraph --example test --features=fuzzing --root
|
cargo flamegraph --example test --features=fuzzing --root
|
||||||
|
|
11
justfile
11
justfile
|
@ -4,13 +4,12 @@ build:
|
||||||
test *FLAGS:
|
test *FLAGS:
|
||||||
RUST_BACKTRACE=full cargo nextest run {{FLAGS}}
|
RUST_BACKTRACE=full cargo nextest run {{FLAGS}}
|
||||||
|
|
||||||
# test with proptest
|
test-all:
|
||||||
test-prop *FLAGS:
|
cargo nextest run &
|
||||||
RUST_BACKTRACE=full RUSTFLAGS='--cfg proptest' cargo nextest run {{FLAGS}}
|
just quickfuzz
|
||||||
|
|
||||||
# test with slower proptest
|
quickfuzz:
|
||||||
test-slowprop *FLAGS:
|
cd crates/loro-core && just quick-fuzz
|
||||||
RUST_BACKTRACE=full RUSTFLAGS='--cfg slow_proptest' cargo nextest run {{FLAGS}}
|
|
||||||
|
|
||||||
check:
|
check:
|
||||||
cargo clippy
|
cargo clippy
|
||||||
|
|
Loading…
Reference in a new issue