Skip to content
Merged
Show file tree
Hide file tree
Changes from 203 commits
Commits
Show all changes
233 commits
Select commit Hold shift + click to select a range
e68110d
Add `--partition` flag
franciszekjob Jan 19, 2026
cc3f2c1
Refactor tests filtering
franciszekjob Jan 19, 2026
8c1942d
Add `PartitionConfig` and `PartitionMap`
franciszekjob Jan 19, 2026
8f2c315
Add partitioning logic and tests
franciszekjob Jan 19, 2026
dfd3e58
Fix linting
franciszekjob Jan 19, 2026
d48f3db
Merge branch '3548-add-partition-flag' of https://github.com/foundry-…
franciszekjob Jan 19, 2026
22a658d
Merge branch '3548-refactor-tests-filtering' of https://github.com/fo…
franciszekjob Jan 19, 2026
bb0aa9e
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Jan 19, 2026
b5cb4b5
Add docs
franciszekjob Jan 19, 2026
9b18850
Restore tests; Add `rayon` to `forge`
franciszekjob Jan 19, 2026
b7b008e
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Jan 19, 2026
6188f3f
Merge branch '3548-partitioning-logic' of https://github.com/foundry-…
franciszekjob Jan 19, 2026
5f59328
Fix linting
franciszekjob Jan 20, 2026
e1f4fe1
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Jan 20, 2026
8f96f8d
Merge branch '3548-partitioning-logic' of https://github.com/foundry-…
franciszekjob Jan 20, 2026
4b9335e
Add partition-related messages
franciszekjob Jan 20, 2026
aa4ad75
Add `Partition.total()`
franciszekjob Jan 20, 2026
b03453d
Merge branch '3548-add-partition-flag' of https://github.com/foundry-…
franciszekjob Jan 20, 2026
10f9b08
Merge branch '3548-refactor-tests-filtering' of https://github.com/fo…
franciszekjob Jan 20, 2026
83642f5
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Jan 20, 2026
4479992
Merge branch '3548-partitioning-logic' of https://github.com/foundry-…
franciszekjob Jan 20, 2026
636168a
Reorder imports
franciszekjob Jan 20, 2026
86e61e3
Add messages in tests
franciszekjob Jan 20, 2026
bf81040
Merge branch '3548-partition-summary-message' of https://github.com/f…
franciszekjob Jan 20, 2026
de09bf0
Fix lints
franciszekjob Jan 20, 2026
354c9e2
Fix lints
franciszekjob Jan 20, 2026
3e8775d
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Jan 20, 2026
80e81db
Merge branch '3548-partitioning-logic' into 3548-partitioning-docs
franciszekjob Jan 20, 2026
05c27c0
Review
franciszekjob Jan 20, 2026
59d5289
Merge branch '3548-add-partition-flag' into 3548-refactor-tests-filte…
franciszekjob Jan 20, 2026
f3558e7
Rename `Ignored` -> `ExcludedByIgnoreFilter`
franciszekjob Jan 20, 2026
1e87216
Move filter-related structs to separate file
franciszekjob Jan 20, 2026
bdd2dd6
Rename
franciszekjob Jan 20, 2026
1c7075b
Merge branch '3548-refactor-tests-filtering' into 3548-partition-config
franciszekjob Jan 20, 2026
57b2ed1
Review
franciszekjob Jan 20, 2026
5cc76d6
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Jan 20, 2026
0d7fd97
Fixes
franciszekjob Jan 20, 2026
a183ab8
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Jan 20, 2026
cfe72d8
Review
franciszekjob Jan 20, 2026
c70a52e
Merge branch '3548-partition-summary-message' of https://github.com/f…
franciszekjob Jan 20, 2026
45a50c4
Merge branch '3548-partitioning-logic' into 3548-partitioning-docs
franciszekjob Jan 20, 2026
79743c6
Review
franciszekjob Jan 20, 2026
08e58c8
Merge branch '3548-partitioning-docs' of https://github.com/foundry-r…
franciszekjob Jan 20, 2026
4ec7a0d
Fix lints
franciszekjob Jan 20, 2026
1096782
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Jan 20, 2026
3404a07
Fixes
franciszekjob Jan 20, 2026
f8c63f7
Merge branch '3548-partitioning-logic' of https://github.com/foundry-…
franciszekjob Jan 20, 2026
9f7f9c3
Merge branch '3548-partition-summary-message' of https://github.com/f…
franciszekjob Jan 20, 2026
e2b4646
Review
franciszekjob Jan 20, 2026
3cfd925
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Jan 20, 2026
57e7198
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Jan 20, 2026
b2d80c2
Fixes
franciszekjob Jan 20, 2026
58d7cda
Fixes
franciszekjob Jan 20, 2026
c6e11a2
Merge branch '3548-add-partition-flag' into 3548-refactor-tests-filte…
franciszekjob Jan 20, 2026
f58319f
Merge branch '3548-refactor-tests-filtering' into 3548-partition-config
franciszekjob Jan 20, 2026
3e3f6c6
Merge branch '3548-partition-config' into 3548-partitioning-logic
franciszekjob Jan 20, 2026
4338a36
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Jan 20, 2026
77e4537
Merge branch '3548-partition-summary-message' of https://github.com/f…
franciszekjob Jan 20, 2026
14f7d12
Fixes
franciszekjob Jan 20, 2026
7e3d873
Merge branch '3548-partitioning-docs' of https://github.com/foundry-r…
franciszekjob Jan 20, 2026
347851a
Review
franciszekjob Jan 20, 2026
970c1b5
Remove file
franciszekjob Jan 20, 2026
93bb883
Merge branch 'master' into 3548-add-partition-flag
franciszekjob Jan 20, 2026
b193f1a
Merge branch '3548-add-partition-flag' of https://github.com/foundry-…
franciszekjob Jan 20, 2026
92a207c
Merge branch '3548-refactor-tests-filtering' of https://github.com/fo…
franciszekjob Jan 20, 2026
d018c2c
Merge branch '3548-refactor-tests-filtering' of https://github.com/fo…
franciszekjob Jan 20, 2026
c4d3cdc
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Jan 20, 2026
f663590
Fix lint
franciszekjob Jan 20, 2026
8770894
Merge branch '3548-partitioning-logic' of https://github.com/foundry-…
franciszekjob Jan 20, 2026
e9457d4
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Jan 20, 2026
6d27d7e
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Jan 20, 2026
8e0f9ff
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Jan 20, 2026
81b5182
Fix tests
franciszekjob Jan 20, 2026
6bd6c4e
Merge branch '3548-add-partition-flag' into 3548-refactor-tests-filte…
franciszekjob Jan 20, 2026
f791160
Merge branch '3548-refactor-tests-filtering' into 3548-partition-config
franciszekjob Jan 20, 2026
534eadd
Merge branch '3548-partition-config' into 3548-partitioning-logic
franciszekjob Jan 20, 2026
4a4c1ef
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Jan 20, 2026
99bb692
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Jan 20, 2026
2e967f7
Remove print
franciszekjob Jan 20, 2026
dc17167
Merge branch '3548-add-partition-flag' into 3548-refactor-tests-filte…
franciszekjob Jan 20, 2026
f78c4b2
Merge branch '3548-refactor-tests-filtering' into 3548-partition-config
franciszekjob Jan 20, 2026
4cb2b20
Merge branch '3548-partition-config' into 3548-partitioning-logic
franciszekjob Jan 20, 2026
88a05f8
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Jan 20, 2026
c46a236
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Jan 20, 2026
cf19ae6
Fix`TestCaseFilter.filter()` - use `ExcludeReason::ExcludedFromPartit…
franciszekjob Jan 20, 2026
ccc9753
Merge branch '3548-partitioning-logic' of https://github.com/foundry-…
franciszekjob Jan 20, 2026
2ebe024
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Jan 20, 2026
8720ca6
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Jan 20, 2026
a910561
Add `test_works_with_coverage`
franciszekjob Jan 21, 2026
6c42248
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Jan 21, 2026
d56e743
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Jan 21, 2026
a11e379
Fix test
franciszekjob Jan 21, 2026
3fb6f81
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Jan 21, 2026
993f497
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Jan 21, 2026
2f23771
Disable `test_works_with_coverage` for Cairo native
franciszekjob Jan 21, 2026
1262499
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Jan 21, 2026
5736386
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Jan 21, 2026
36015cb
Review
franciszekjob Jan 21, 2026
be80178
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Jan 21, 2026
8dd898b
Refactor `run_for_test_target`
franciszekjob Jan 21, 2026
01c5d3d
Fix lint
franciszekjob Jan 21, 2026
89945f7
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Jan 21, 2026
a07a54a
Revert "Refactor `run_for_test_target`"
franciszekjob Jan 22, 2026
08e807b
Merge branch 'master' into 3548-add-partition-flag
franciszekjob Jan 23, 2026
1d6101a
Merge branch '3548-add-partition-flag' into 3548-refactor-tests-filte…
franciszekjob Jan 23, 2026
dc07497
Merge branch '3548-refactor-tests-filtering' into 3548-partition-config
franciszekjob Jan 23, 2026
0c8d1c6
Merge branch '3548-partition-config' into 3548-partitioning-logic
franciszekjob Jan 23, 2026
e6bfa9c
Remove `par_iter` from `PartitionMap::build()`
franciszekjob Jan 23, 2026
c2b9f45
Merge branch '3548-partitioning-logic' of https://github.com/foundry-…
franciszekjob Jan 23, 2026
1a4a180
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Jan 23, 2026
3c7e13d
Fix newline
franciszekjob Jan 27, 2026
d36bd69
Merge branch '3548-partitioning-docs' of https://github.com/foundry-r…
franciszekjob Jan 27, 2026
3a19098
Refactor partition-related messages
franciszekjob Jan 27, 2026
8b51c7d
Merge branch '3548-partition-summary-message' of https://github.com/f…
franciszekjob Jan 27, 2026
46287bf
Formatting
franciszekjob Jan 27, 2026
48b9ed9
Merge branch '3548-partition-summary-message' of https://github.com/f…
franciszekjob Jan 27, 2026
0edafcd
Apply review suggestion
franciszekjob Feb 2, 2026
4b829bf
Merge branch '3548-add-partition-flag' of https://github.com/foundry-…
franciszekjob Feb 2, 2026
d0f738b
Merge branch '3548-add-partition-flag' of https://github.com/foundry-…
franciszekjob Feb 2, 2026
8f50fee
Apply review suggestions
franciszekjob Feb 2, 2026
2662589
Merge branch '3548-refactor-tests-filtering' of https://github.com/fo…
franciszekjob Feb 2, 2026
d507c4c
Formatting
franciszekjob Feb 2, 2026
de07547
Merge branch '3548-add-partition-flag' of https://github.com/foundry-…
franciszekjob Feb 2, 2026
2fe2c4c
Merge branch '3548-refactor-tests-filtering' of https://github.com/fo…
franciszekjob Feb 2, 2026
a556e06
Remove `par_iter` from `PartitionMap::build()`
franciszekjob Jan 23, 2026
ff46617
Apply review suggestions
franciszekjob Feb 2, 2026
0f50dd7
Fix newline
franciszekjob Feb 2, 2026
6f90bb7
Fix test
franciszekjob Feb 2, 2026
0d5a100
Formatting
franciszekjob Feb 2, 2026
378c9a2
Merge branch '3548-add-partition-flag' of https://github.com/foundry-…
franciszekjob Feb 2, 2026
c54ae77
Merge branch '3548-refactor-tests-filtering' into 3548-partition-config
franciszekjob Feb 2, 2026
46196c0
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Feb 2, 2026
64c7673
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Feb 2, 2026
fabc64f
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Feb 2, 2026
3bf334e
Update docs
franciszekjob Feb 2, 2026
47dc090
Fix newline
franciszekjob Feb 2, 2026
146a406
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Feb 2, 2026
3b5fd8f
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Feb 2, 2026
c2805ff
Fix build
franciszekjob Feb 4, 2026
8feae09
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Feb 4, 2026
ed0cad9
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Feb 4, 2026
f3c9b0e
Formatting
franciszekjob Feb 4, 2026
dcde981
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Feb 4, 2026
aac7984
Rename variable
franciszekjob Feb 4, 2026
f6fc3e0
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Feb 4, 2026
d8e9962
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Feb 4, 2026
34f9507
Display skipped tests count
franciszekjob Feb 4, 2026
83ff165
Small adjustments
franciszekjob Feb 4, 2026
ca884b1
Merge branch '3548-partition-summary-message' of https://github.com/f…
franciszekjob Feb 4, 2026
c2d290e
Merge branch '3548-partition-summary-message' of https://github.com/f…
franciszekjob Feb 4, 2026
e12f636
Add missing file
franciszekjob Feb 4, 2026
2c7b91d
Merge branch '3548-partitioning-docs' of https://github.com/foundry-r…
franciszekjob Feb 4, 2026
ae9e803
Fixes
franciszekjob Feb 4, 2026
92b475d
Formatting
franciszekjob Feb 4, 2026
25d4c3b
Fix
franciszekjob Feb 5, 2026
45d5886
Apply review suggestions
franciszekjob Feb 5, 2026
8ec54a9
Merge branch '3548-add-partition-flag' into 3548-refactor-tests-filte…
franciszekjob Feb 5, 2026
a6d8dd9
Formatting
franciszekjob Feb 5, 2026
18d1d7b
Merge branch '3548-add-partition-flag' of https://github.com/foundry-…
franciszekjob Feb 5, 2026
32c4ca2
Merge branch '3548-refactor-tests-filtering' of https://github.com/fo…
franciszekjob Feb 5, 2026
534ce09
Fixes
franciszekjob Feb 5, 2026
f3b1436
Merge branch '3548-refactor-tests-filtering' of https://github.com/fo…
franciszekjob Feb 5, 2026
60d1d46
Fix build
franciszekjob Feb 5, 2026
2bacf2d
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Feb 5, 2026
7fd683a
Fix build
franciszekjob Feb 5, 2026
d80561e
Apply suggestions
franciszekjob Feb 5, 2026
5f264f5
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Feb 5, 2026
58384a7
Add `PartitionConfig::default()`
franciszekjob Feb 5, 2026
1ecc1cb
Review suggestions + cleanups
franciszekjob Feb 5, 2026
c123c7c
Fix build
franciszekjob Feb 5, 2026
74abde2
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Feb 5, 2026
0681c69
Formatting
franciszekjob Feb 5, 2026
2c11194
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Feb 5, 2026
a9b8994
Merge branch '3548-partitioning-logic' of https://github.com/foundry-…
franciszekjob Feb 5, 2026
ff815dc
Merge branch '3548-partition-summary-message' of https://github.com/f…
franciszekjob Feb 5, 2026
3921760
Fix build
franciszekjob Feb 5, 2026
1e3d792
Merge branch '3548-partition-config' of https://github.com/foundry-rs…
franciszekjob Feb 5, 2026
22fc42a
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Feb 5, 2026
d6bb562
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Feb 5, 2026
91aba82
Fix import
franciszekjob Feb 5, 2026
1069f49
Merge branch '3548-partitioning-logic' of https://github.com/foundry-…
franciszekjob Feb 5, 2026
f5136dd
Merge branch '3548-partition-summary-message' of https://github.com/f…
franciszekjob Feb 5, 2026
c728436
Merge branch '3548-partitioning-docs' of https://github.com/foundry-r…
franciszekjob Feb 5, 2026
3ce124c
Formatting
franciszekjob Feb 5, 2026
46ebd9c
Merge branch '3548-partition-summary-message' of https://github.com/f…
franciszekjob Feb 5, 2026
03dedc4
Merge branch '3548-partitioning-docs' of https://github.com/foundry-r…
franciszekjob Feb 5, 2026
14c725e
Fix build
franciszekjob Feb 5, 2026
3c9f266
Fix import
franciszekjob Feb 5, 2026
f0d53c3
Fix lint
franciszekjob Feb 5, 2026
f4fe012
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Feb 5, 2026
1f21296
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Feb 5, 2026
d26ea84
Fix import
franciszekjob Feb 5, 2026
26bf1c7
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Feb 5, 2026
1b9bd51
Merge branch '3548-partitioning-docs' of https://github.com/foundry-r…
franciszekjob Feb 5, 2026
0b61a16
Formatting
franciszekjob Feb 5, 2026
461910a
Merge branch '3548-partition-summary-message' of https://github.com/f…
franciszekjob Feb 5, 2026
9310b23
Merge branch '3548-partitioning-docs' of https://github.com/foundry-r…
franciszekjob Feb 5, 2026
f63fc01
Fix `Scarb.toml`
franciszekjob Feb 5, 2026
52357a9
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Feb 5, 2026
ef99d39
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Feb 5, 2026
06411b4
Merge branch '3548-partitioning-docs' into 3548-display-skipped-tests…
franciszekjob Feb 5, 2026
4dece91
Fix lint
franciszekjob Feb 6, 2026
fb4d105
Merge branch '3548-display-skipped-tests-count' of https://github.com…
franciszekjob Feb 6, 2026
c0d3b66
Address review comment
franciszekjob Feb 6, 2026
e742333
Fix lint
franciszekjob Feb 6, 2026
00e02ac
Remove changes
franciszekjob Feb 6, 2026
444f483
Add message "...included <n> out of total <m> tests" in partition run
franciszekjob Feb 6, 2026
138876b
Fix docs
franciszekjob Feb 6, 2026
280570a
Fix lint
franciszekjob Feb 6, 2026
5bacae1
Fix tests
franciszekjob Feb 6, 2026
5f0c638
Fix test with coverage
franciszekjob Feb 9, 2026
abc33c3
Apply review suggestion
franciszekjob Feb 9, 2026
23c2397
Fix format
franciszekjob Feb 9, 2026
319b80c
Merge branch 'master' into 3548-add-partition-flag
franciszekjob Feb 9, 2026
e22e022
Merge branch '3548-add-partition-flag' into 3548-refactor-tests-filte…
franciszekjob Feb 9, 2026
df9d43a
Merge branch '3548-refactor-tests-filtering' into 3548-partition-config
franciszekjob Feb 9, 2026
327a566
Merge branch '3548-partition-config' into 3548-partitioning-logic
franciszekjob Feb 9, 2026
e044130
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Feb 9, 2026
e23f526
Merge branch '3548-partition-summary-message' of https://github.com/f…
franciszekjob Feb 9, 2026
04b6100
Merge branch '3548-partitioning-docs' of https://github.com/foundry-r…
franciszekjob Feb 9, 2026
b712a2a
Merge branch '3548-partitioning-docs' into 3548-display-skipped-tests…
franciszekjob Feb 9, 2026
d9d316b
Merge branch 'master' of https://github.com/foundry-rs/starknet-found…
franciszekjob Feb 10, 2026
5d759ec
Fix import
franciszekjob Feb 10, 2026
5d0edee
Merge branch '3548-partitioning-logic' into 3548-partition-summary-me…
franciszekjob Feb 10, 2026
8ed3956
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Feb 10, 2026
2fca6f4
Fix lint
franciszekjob Feb 10, 2026
48a1cce
Merge branch 'master' of https://github.com/foundry-rs/starknet-found…
franciszekjob Feb 10, 2026
bb44fb2
Fix import
franciszekjob Feb 10, 2026
29c5b03
Merge branch '3548-partition-summary-message' into 3548-partitioning-…
franciszekjob Feb 10, 2026
db299ac
Merge branch '3548-partitioning-docs' into 3548-display-skipped-tests…
franciszekjob Feb 10, 2026
4b4b541
Merge branch 'master' of https://github.com/foundry-rs/starknet-found…
franciszekjob Feb 10, 2026
8294aa8
Merge branch '3548-display-skipped-tests-count' of https://github.com…
franciszekjob Feb 10, 2026
fa67e27
Merge branch 'master' into 3548-display-skipped-tests-count
franciszekjob Feb 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## Forge
### Forge

#### Added

- Partitioned test execution with `--partition <INDEX>/<TOTAL>` flag. Read more [here](https://foundry-rs.github.io/starknet-foundry/snforge-advanced-features/tests-partitioning.html)

#### Changed

- `--detailed-resources` output now includes all gas-related resources

## [0.55.0] - 2026-01-13

## Forge
### Forge

#### Changed

Expand Down
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions crates/forge-runner/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,7 @@ strum_macros = "0.27"
scarb-oracle-hint-service.workspace = true
tracing.workspace = true
comfy-table.workspace = true
scarb-api = { path = "../scarb-api" }

[dev-dependencies]
test-case.workspace = true
29 changes: 29 additions & 0 deletions crates/forge-runner/src/filtering.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
use crate::package_tests::TestCase;

/// Result of filtering a test case.
#[derive(Debug)]
pub enum FilterResult {
/// Test case should be included.
Included,
/// Test case should be excluded for the given reason.
Excluded(ExcludeReason),
}

/// Reason for excluding a test case.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum ExcludeReason {
/// Test case is ignored.
Ignored,
/// Test case is excluded from the current partition.
ExcludedFromPartition,
}

pub trait TestCaseFilter {
fn filter<T>(&self, test_case: &TestCase<T>) -> FilterResult
where
T: TestCaseIsIgnored;
}

pub trait TestCaseIsIgnored {
fn is_ignored(&self) -> bool;
}
25 changes: 8 additions & 17 deletions crates/forge-runner/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::coverage_api::run_coverage;
use crate::forge_config::{ExecutionDataToSave, ForgeConfig};
use crate::package_tests::TestCase;
use crate::running::{run_fuzz_test, run_test};
use crate::test_case_summary::TestCaseSummary;
use anyhow::Result;
Expand All @@ -25,22 +24,24 @@ use tokio::sync::mpsc::{Sender, channel};
use tokio::task::JoinHandle;
use universal_sierra_compiler_api::representation::RawCasmProgram;

pub mod backtrace;
pub mod build_trace_data;
pub mod coverage_api;
pub mod debugging;
pub mod expected_result;
pub mod filtering;
pub mod forge_config;
mod gas;
pub mod messages;
pub mod package_tests;
pub mod partition;
pub mod profiler_api;
pub mod running;
pub mod scarb;
pub mod test_case_summary;
pub mod test_target_summary;
pub mod tests_summary;

pub mod backtrace;
pub mod debugging;
mod gas;
pub mod messages;
pub mod running;

pub const CACHE_DIR: &str = ".snfoundry_cache";

const BUILTINS: [&str; 11] = [
Expand All @@ -57,16 +58,6 @@ const BUILTINS: [&str; 11] = [
"MulMod",
];

pub trait TestCaseFilter {
fn should_be_run<T>(&self, test_case: &TestCase<T>) -> bool
where
T: TestCaseIsIgnored;
}

pub trait TestCaseIsIgnored {
fn is_ignored(&self) -> bool;
}

pub fn maybe_save_trace_and_profile(
result: &AnyTestCaseSummary,
execution_data_to_save: &ExecutionDataToSave,
Expand Down
14 changes: 13 additions & 1 deletion crates/forge-runner/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ enum TestResultStatus {
Failed,
Ignored,
Interrupted,
ExcludedFromPartition,
}

impl From<&AnyTestCaseSummary> for TestResultStatus {
Expand All @@ -26,6 +27,10 @@ impl From<&AnyTestCaseSummary> for TestResultStatus {
| AnyTestCaseSummary::Fuzzing(TestCaseSummary::Ignored { .. }) => Self::Ignored,
AnyTestCaseSummary::Single(TestCaseSummary::Interrupted { .. })
| AnyTestCaseSummary::Fuzzing(TestCaseSummary::Interrupted { .. }) => Self::Interrupted,
AnyTestCaseSummary::Single(TestCaseSummary::ExcludedFromPartition { .. })
| AnyTestCaseSummary::Fuzzing(TestCaseSummary::ExcludedFromPartition { .. }) => {
Self::ExcludedFromPartition
}
}
}
}
Expand Down Expand Up @@ -123,7 +128,9 @@ impl TestResultMessage {
match self.status {
TestResultStatus::Passed => return format!("\n\n{msg}"),
TestResultStatus::Failed => return format!("\n\nFailure data:{msg}"),
TestResultStatus::Ignored | TestResultStatus::Interrupted => return String::new(),
TestResultStatus::Ignored
| TestResultStatus::Interrupted
| TestResultStatus::ExcludedFromPartition => return String::new(),
}
}
String::new()
Expand All @@ -137,6 +144,11 @@ impl TestResultMessage {
TestResultStatus::Interrupted => {
unreachable!("Interrupted tests should not have visible message representation")
}
TestResultStatus::ExcludedFromPartition => {
unreachable!(
"Tests excluded from partition should not have visible message representation"
)
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/forge-runner/src/package_tests/with_config.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::{TestCase, TestTarget};
use crate::{
TestCaseIsIgnored,
expected_result::{ExpectedPanicValue, ExpectedTestResult},
filtering::TestCaseIsIgnored,
};
use cheatnet::runtime_extensions::forge_config_extension::config::{
Expected, RawAvailableResourceBoundsConfig, RawForgeConfig, RawForkConfig, RawFuzzerConfig,
Expand Down
7 changes: 5 additions & 2 deletions crates/forge-runner/src/package_tests/with_config_resolved.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use super::{TestCase, TestTarget};
use crate::{TestCaseIsIgnored, expected_result::ExpectedTestResult, package_tests::TestDetails};
use crate::{
expected_result::ExpectedTestResult, filtering::TestCaseIsIgnored, package_tests::TestDetails,
};
use anyhow::Result;
use cairo_vm::types::program::Program;
use cheatnet::runtime_extensions::forge_config_extension::config::{
Expand All @@ -13,7 +15,8 @@ pub type TestTargetWithResolvedConfig = TestTarget<TestCaseResolvedConfig>;

pub type TestCaseWithResolvedConfig = TestCase<TestCaseResolvedConfig>;

fn sanitize_test_case_name(name: &str) -> String {
#[must_use]
pub fn sanitize_test_case_name(name: &str) -> String {
// Test names generated by `#[test]` and `#[fuzzer]` macros contain internal suffixes
name.replace("__snforge_internal_test_generated", "")
.replace("__snforge_internal_fuzzer_generated", "")
Expand Down
Loading
Loading