Sha256: dcdec21a252964d192ad9bfadd73ac0892a966eb40e4533c545165f3bec6896d
Contents?: true
Size: 928 Bytes
Versions: 12
Compression:
Stored size: 928 Bytes
Contents
#!/bin/bash # # Run the unit tests first without RSpec parallel, then run acceptance tests in parallel # # When splitting all tests across all parallel processes, it's quite plausible # that some processes only run a majority of unit tests, whilst others only run a # a majority of acceptance tests. This ensures acceptance tests are split out. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" bundle exec rspec "${DIR}/unit" unit_status=$? bundle exec parallel_rspec "${DIR}/acceptance" --prefix-output-with-test-env-number acceptance_status=$? if [ $unit_status -ne 0 ]; then echo -e "\e[31m⚠ Note: Unit tests have also failed, but are not listed in the test failures above. Scroll up to the unit tests ⚠\e[0m" fi if [ $unit_status -ne 0 ] || [ $acceptance_status -ne 0 ]; then echo "Unit tests exit code: ${unit_status}" echo "Acceptance tests exit code: ${acceptance_status}" exit 1 fi
Version data entries
12 entries across 12 versions & 2 rubygems