Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1041,9 +1041,10 @@ jobs:
name: Run heavy fuzz tests
command: |
mkdir -p results
just test --junit > results/results.xml
just test
environment:
FOUNDRY_PROFILE: ciheavy
JUNIT_TEST_PATH: results/results.xml
working_directory: packages/contracts-bedrock
no_output_timeout: 90m
- run:
Expand Down Expand Up @@ -1248,8 +1249,9 @@ jobs:
name: Run tests
command: |
mkdir -p results
just test-upgrade --junit > results/results.xml
just test-upgrade
environment:
JUNIT_TEST_PATH: results/results.xml
FOUNDRY_FUZZ_SEED: 42424242
FOUNDRY_FUZZ_RUNS: 1
FOUNDRY_PROFILE: ci
Expand Down
14 changes: 12 additions & 2 deletions packages/contracts-bedrock/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ clean:

# Runs standard contract tests.
test *ARGS: build-go-ffi
forge test {{ARGS}}
#!/bin/bash
if [ -n "$JUNIT_TEST_PATH" ]; then
forge test {{ARGS}} --junit > "$JUNIT_TEST_PATH"
else
forge test {{ARGS}}
fi

# Runs standard contract tests (developer mode).
test-dev *ARGS: build-go-ffi
Expand Down Expand Up @@ -115,7 +120,12 @@ prepare-upgrade-env *ARGS : build-go-ffi

# Runs upgrade path variant of contract tests.
test-upgrade *ARGS:
just prepare-upgrade-env "forge test {{ARGS}}"
#!/bin/bash
if [ -n "$JUNIT_TEST_PATH" ]; then
just prepare-upgrade-env "forge test {{ARGS}} --junit > \"$JUNIT_TEST_PATH\""
else
just prepare-upgrade-env "forge test {{ARGS}}"
fi

test-upgrade-rerun *ARGS: build-go-ffi
just test-upgrade {{ARGS}} --rerun -vvvv
Expand Down