Skip to content

Instantly share code, notes, and snippets.

@zdennis
Created May 28, 2019 14:34
Show Gist options
  • Save zdennis/ea4bd6f53a1fcdf1200186eecf5f46ef to your computer and use it in GitHub Desktop.
Save zdennis/ea4bd6f53a1fcdf1200186eecf5f46ef to your computer and use it in GitHub Desktop.
Run Ralis 3 specs individually
#!/usr/bin/env bash
>passed.txt
>failed.txt
for file in `find spec -name '*_spec.rb'` ; do
script/rails3 rspec --default-path spec_rails_3 $file
if [ $? -eq 0 ]; then
echo $file >> passed.txt
else
echo $file >> failed.txt
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment