Skip to content

Instantly share code, notes, and snippets.

@brookslyrette
Created January 21, 2015 12:01
Show Gist options
  • Save brookslyrette/c10e777ec385f252d6e1 to your computer and use it in GitHub Desktop.
Save brookslyrette/c10e777ec385f252d6e1 to your computer and use it in GitHub Desktop.
Counting tests run in surefire.
grep -o 'Tests run: [0-9]\{1,\}' target/surefire-reports/*.txt | grep -o '[0-9]\{1,\}' | awk '{ SUM += $1} END { print SUM }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment