Files
project-work/worker-toolkit-stocks-in-the-future/repo/docker/test-cov
Eric Bell 392781f7aa chore: init commit
in worker.../repo/GITFOLDER.zip is the .git folder.
2026-08-11 14:44:09 -04:00

19 lines
550 B
Bash
Executable File

#!/bin/bash
set -eo pipefail
# SimpleCov does not work well with parallel workers
# and shows an inaccurate test coverage figure.
# This script disables the parallel workers feature in order to
# provide an accurate test coverage figure.
docker/bundle-install
docker/db-migrate
echo '-----------------------'
echo 'BEGIN: testing coverage'
echo '-----------------------'
docker compose run -e PARALLEL_WORKERS=1 --rm --no-deps stocks rails test
echo '--------------------------'
echo 'FINISHED: testing coverage'
echo '--------------------------'