Last active
March 28, 2019 20:24
-
-
Save rhiroyuki/b718e8ee47551d24af4534db0600315b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# I HATE INTERMITTENT TESTS | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
GREEN='\033[0;32m' | |
seed=2499 | |
folders=( $(find "$(pwd)" -name *_spec.rb)) | |
# folders=( $(ls -la spec/* -d | grep ^d | grep "spec.*" -o) ) | |
for folder in "${folders[@]}"; | |
do | |
if RUBYOPT="-W0" bundle exec rspec ${folder} --seed $seed --format progress --deprecation-out rspec.log --out rspec_output.log; | |
then | |
echo -e "${GREEN}PASSED!${NC}" | |
else | |
echo -e "${RED}FAILED!${NC}" | |
echo -e "CHECK ${folder} with seed: ${seed}" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment