Commit 92c0881
committed
test(mcms): optimise container startups
The original tests which include spinning up solana containers take up a good chunk of time
```
github.com/smartcontractkit/cld-changesets/legacy/mcms/changesets 112.753s coverage: 67.1% of statements
github.com/smartcontractkit/cld-changesets/mcms/changesets/set-config 133.902s coverage: 91.2% of statements
github.com/smartcontractkit/cld-changesets/mcms/solana/changesets/fund-mcm-pdas 60.253s coverage: 89.7% of statements
```
I have since optimised it by doing:
- reduce container startups by having multple tests share the same container if there are no conflicts
- reduce duplicate tests in the sequence or operation tests when the same flow has been covered by the integration test at changeset_test.go1 parent 06e4c39 commit 92c0881
9 files changed
Lines changed: 830 additions & 1286 deletions
File tree
- internal/testutil/solanatest
- mcms
- changesets/set-config
- evm/set-config
- solana
- deploy
- set-config
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
0 commit comments