Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Forward parameters in tests scripts #917

Merged
merged 1 commit into from
Jul 11, 2019
Merged
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
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