Skip to content

Commit

Permalink
Chore: Forward parameters in tests scripts (aragon#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
facuspagnuolo authored Jul 11, 2019
1 parent 2b49474 commit c952d29
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions shared/test-helpers/ganache-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,21 @@ start_testrpc() {
}

measure_coverage() {
echo "Measuring coverage..."
npx solidity-coverage "$@"
echo "Measuring coverage $@..."
npx solidity-coverage $@
}

run_tests() {
echo "Running tests..."
npx truffle test --network rpc "$@"
echo "Running tests $@..."
npx truffle test --network rpc $@
}

if [ "$SOLIDITY_COVERAGE" = true ]; then
setup_coverage_variables
start_testrpc
measure_coverage
measure_coverage $@
else
setup_testing_variables
start_ganache
run_tests
run_tests $@
fi

0 comments on commit c952d29

Please sign in to comment.