just mutants*: no proptest shrinking (a mutant only needs a failing test); GUI timeout 60 s (its suite takes ~10 s)
check / check (push) Canceled after 0s
check / check (push) Canceled after 0s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GWVo7x3UHw5kwCUaWxiejX
This commit is contained in:
1 parent
50f22af695
commit
13a52c5849
1 file changed
+7
-6
@@ -62,6 +62,7 @@ miri:
|
|||||||
|
|
||||||
# Where cargo-mutants copies and builds the tree for each mutant (several
|
# Where cargo-mutants copies and builds the tree for each mutant (several
|
||||||
# GB per job): the user's cache on disk, never /tmp, which is often RAM.
|
# GB per job): the user's cache on disk, never /tmp, which is often RAM.
|
||||||
|
# A mutant only needs some test to fail, so proptest doesn't shrink.
|
||||||
mutants_tmp := env_var_or_default("XDG_CACHE_HOME", env_var("HOME") + "/.cache") + "/wanderbooks/mutants"
|
mutants_tmp := env_var_or_default("XDG_CACHE_HOME", env_var("HOME") + "/.cache") + "/wanderbooks/mutants"
|
||||||
|
|
||||||
# Mutation testing of the core: do the tests catch planted bugs?
|
# Mutation testing of the core: do the tests catch planted bugs?
|
||||||
@@ -69,35 +70,35 @@ mutants:
|
|||||||
# Core and store tests (the store's replay tests reach Ledger::replay_*);
|
# Core and store tests (the store's replay tests reach Ledger::replay_*);
|
||||||
# the whole workspace would rebuild the viewer for every mutant.
|
# the whole workspace would rebuild the viewer for every mutant.
|
||||||
mkdir -p {{mutants_tmp}}
|
mkdir -p {{mutants_tmp}}
|
||||||
TMPDIR={{mutants_tmp}} cargo mutants -p ledger-core --exclude crates/ledger-core/src/proofs.rs --test-package ledger-core --test-package ledger-store -j 4 --timeout 120
|
PROPTEST_MAX_SHRINK_ITERS=0 TMPDIR={{mutants_tmp}} cargo mutants -p ledger-core --exclude crates/ledger-core/src/proofs.rs --test-package ledger-core --test-package ledger-store -j 4 --timeout 120
|
||||||
|
|
||||||
# Mutation testing of the store. Fewer random cases per mutant (each needs
|
# Mutation testing of the store. Fewer random cases per mutant (each needs
|
||||||
# a run that catches it, not the deep sweep).
|
# a run that catches it, not the deep sweep).
|
||||||
mutants-store:
|
mutants-store:
|
||||||
mkdir -p {{mutants_tmp}}
|
mkdir -p {{mutants_tmp}}
|
||||||
STORE_CASES=64 TMPDIR={{mutants_tmp}} cargo mutants -p ledger-store --test-package ledger-store -j 3 --timeout 300 -o mutants-store
|
STORE_CASES=64 PROPTEST_MAX_SHRINK_ITERS=0 TMPDIR={{mutants_tmp}} cargo mutants -p ledger-store --test-package ledger-store -j 3 --timeout 300 -o mutants-store
|
||||||
|
|
||||||
# Mutation testing of the importers and report renderers.
|
# Mutation testing of the importers and report renderers.
|
||||||
mutants-import:
|
mutants-import:
|
||||||
mkdir -p {{mutants_tmp}}
|
mkdir -p {{mutants_tmp}}
|
||||||
TMPDIR={{mutants_tmp}} cargo mutants -p ledger-import --test-package ledger-import -j 4 --timeout 300 -o mutants-import
|
PROPTEST_MAX_SHRINK_ITERS=0 TMPDIR={{mutants_tmp}} cargo mutants -p ledger-import --test-package ledger-import -j 4 --timeout 300 -o mutants-import
|
||||||
|
|
||||||
# Mutation testing of the settings parser and the receipt policy.
|
# Mutation testing of the settings parser and the receipt policy.
|
||||||
mutants-config:
|
mutants-config:
|
||||||
mkdir -p {{mutants_tmp}}
|
mkdir -p {{mutants_tmp}}
|
||||||
TMPDIR={{mutants_tmp}} cargo mutants -p ledger-config --test-package ledger-config -j 4 --timeout 120 -o mutants-config
|
PROPTEST_MAX_SHRINK_ITERS=0 TMPDIR={{mutants_tmp}} cargo mutants -p ledger-config --test-package ledger-config -j 4 --timeout 120 -o mutants-config
|
||||||
|
|
||||||
# Mutation testing of the MCP server (every mutant runs the stdio suites;
|
# Mutation testing of the MCP server (every mutant runs the stdio suites;
|
||||||
# fewer random cases each, as for the store).
|
# fewer random cases each, as for the store).
|
||||||
mutants-mcp:
|
mutants-mcp:
|
||||||
mkdir -p {{mutants_tmp}}
|
mkdir -p {{mutants_tmp}}
|
||||||
MCP_CASES=16 TMPDIR={{mutants_tmp}} cargo mutants -p ledger-mcp --test-package ledger-mcp -j 4 --timeout 600 -o mutants-mcp
|
MCP_CASES=16 PROPTEST_MAX_SHRINK_ITERS=0 TMPDIR={{mutants_tmp}} cargo mutants -p ledger-mcp --test-package ledger-mcp -j 4 --timeout 600 -o mutants-mcp
|
||||||
|
|
||||||
# Mutation testing of the viewer's logic (formatting, file names, history,
|
# Mutation testing of the viewer's logic (formatting, file names, history,
|
||||||
# search, ticks, the view model, the attention list; not the painting).
|
# search, ticks, the view model, the attention list; not the painting).
|
||||||
mutants-gui:
|
mutants-gui:
|
||||||
mkdir -p {{mutants_tmp}}
|
mkdir -p {{mutants_tmp}}
|
||||||
TMPDIR={{mutants_tmp}} cargo mutants -p ledger-gui --test-package ledger-gui -j 4 --timeout 300 -o mutants-gui -f crates/ledger-gui/src/fmt.rs -f crates/ledger-gui/src/export.rs -f crates/ledger-gui/src/nav.rs -f crates/ledger-gui/src/attention.rs -f crates/ledger-gui/src/books.rs -f crates/ledger-gui/src/palette.rs -f crates/ledger-gui/src/charts.rs
|
PROPTEST_MAX_SHRINK_ITERS=0 TMPDIR={{mutants_tmp}} cargo mutants -p ledger-gui --test-package ledger-gui -j 4 --timeout 60 -o mutants-gui -f crates/ledger-gui/src/fmt.rs -f crates/ledger-gui/src/export.rs -f crates/ledger-gui/src/nav.rs -f crates/ledger-gui/src/attention.rs -f crates/ledger-gui/src/books.rs -f crates/ledger-gui/src/palette.rs -f crates/ledger-gui/src/charts.rs
|
||||||
|
|
||||||
# Benchmarks of the core's hot paths (no budget gates them yet)
|
# Benchmarks of the core's hot paths (no budget gates them yet)
|
||||||
bench:
|
bench:
|
||||||
|
|||||||
Reference in new issue
Block a user