Skip to content

feat(integration): isolate CLI integration WASM artifacts for parallel tests - #372

Merged
0xsamuel1 merged 1 commit into
soroban-testkit:mainfrom
francescoricc1:feat/issue-215-cli-integration-fixture
Oct 20, 2026
Merged

0xsamuel1 merged 1 commit into
soroban-testkit:mainfrom
francescoricc1:feat/issue-215-cli-integration-fixture

Conversation

@francescoricc1

Copy link
Copy Markdown
Contributor

Isolate generated WASM artifacts in CLI integration tests so they can run in parallel.

Each limits test now builds vault into its own uniquely-named temp target
dir (cargo --target-dir) instead of a shared target/wasm32v1-none/release/vault.wasm,
removing the cross-test dependency (the unknown-function test previously
skipped unless the batch-payout test built the shared wasm first).

An IsolatedDir helper removes the temp dir and every artifact on drop,
verified by a new regression test asserting creation, use, and cleanup
(no residue left in the system temp dir).

Also fixes a pre-existing coverage.rs compile error (format strings
referenced an out-of-scope 'status' variable) that blocked building the
soroban-testkit-cli bin and therefore its integration tests.

Network-free behavior and error conventions are preserved; no new
dependencies added.

closes #215

Build each limits test's vault.wasm into its own uniquely-named temp
target dir (--target-dir) so parallel tests never race on a shared
target/wasm32v1-none/release/vault.wasm. The IsolatedDir helper removes
the temp dir and every artifact on drop, leaving no residue, and a new
regression test asserts creation, use, and cleanup. This removes the
cross-test dependency where the unknown-function test skipped unless the
batch-payout test built the shared wasm first.

Also fix a pre-existing coverage.rs compile error where the error format
strings referenced an out-of-scope 'status' variable, which blocked
building the soroban-testkit-cli bin (and therefore its integration
tests) altogether.

closes soroban-testkit#215
@drips-wave

drips-wave Bot commented Oct 20, 2026

Copy link
Copy Markdown

@francescoricc1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@0xsamuel1
0xsamuel1 merged commit 0e9c6f6 into soroban-testkit:main Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(integration): CLI integration fixture

2 participants