Skip to content

Instantly share code, notes, and snippets.

@williamchan
Created January 29, 2015 18:38
Show Gist options
  • Save williamchan/6f86299c0560714b37e4 to your computer and use it in GitHub Desktop.
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
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