Skip to content

Instantly share code, notes, and snippets.

@philz
Created September 5, 2013 00:18
Show Gist options
  • Select an option

  • Save philz/6444491 to your computer and use it in GitHub Desktop.

Select an option

Save philz/6444491 to your computer and use it in GitHub Desktop.
Inefficient mechanism to find slow Surefire-executed tests. keywords: maven surefire test duration time
$paste <(xpath -q -e '//testcase/@name' $(find . -name 'TEST-*.xml') ) <(xpath -q -e '//testcase/@classname' $(find . -name 'TEST-*.xml') ) <(xpath -q -e '//testcase/@time' $(find . -name 'TEST-*.xml') ) | tr '=' ' ' | tr -d '"' | awk '{ print $6, $4, $2 }' | sort -n > testtimes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment