Created
January 29, 2015 18:38
-
-
Save williamchan/6f86299c0560714b37e4 to your computer and use it in GitHub Desktop.
A short bash script that will find *Test.scala files that lack a JUnitRunner annotation
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
for i in $(find . -name *Test.scala); | |
do grep -s \"@RunWith(classOf\\[JUnitRunner\\])\" $i; | |
if [ $? -ne 0 ]; | |
then | |
echo $i; | |
fi; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment