Skip to content

Commit

Permalink
Merge branch 'main' into importer-component
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-aranha-cw authored Jul 30, 2024
2 parents f8ec01c + 3cdfd39 commit 86f383e
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ test-int name="'*'":
# ------------------------------------------------------------------------------

# E2E: Execute Hardhat tests in the specified network
e2e network="stratus" block-mode="automine" test="":
e2e network="stratus" block_modes="automine" test="":
#!/bin/bash
if [ -d e2e ]; then
cd e2e
Expand All @@ -133,11 +133,16 @@ e2e network="stratus" block-mode="automine" test="":
npm install
fi

if [ -z "{{test}}" ]; then
BLOCK_MODE={{block-mode}} npx hardhat test test/{{block-mode}}/*.test.ts --network {{network}}
else
BLOCK_MODE={{block-mode}} npx hardhat test test/{{block-mode}}/*.test.ts --network {{network}} --grep "{{test}}"
fi
block_modes_split=$(echo {{block_modes}} | sed "s/,/ /g")
for block_mode in $block_modes_split
do
just _log "Executing: $block_mode"
if [ -z "{{test}}" ]; then
BLOCK_MODE=$block_mode npx hardhat test test/$block_mode/*.test.ts --network {{network}}
else
BLOCK_MODE=$block_mode npx hardhat test test/$block_mode/*.test.ts --network {{network}} --grep "{{test}}"
fi
done

# E2E: Starts and execute Hardhat tests in Stratus
e2e-stratus block-mode="automine" test="":
Expand Down

0 comments on commit 86f383e

Please sign in to comment.