Skip to content

Instantly share code, notes, and snippets.

@xpepper
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save xpepper/d35863b6c9cb0765ac2a to your computer and use it in GitHub Desktop.

Select an option

Save xpepper/d35863b6c9cb0765ac2a to your computer and use it in GitHub Desktop.

Revisions

  1. xpepper revised this gist Jan 16, 2015. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions slow_tests.sh
    Original file line number Diff line number Diff line change
    @@ -5,5 +5,8 @@ cd /data/jenkins/jobs/IntegrationTest/workspace/Integration/target/failsafe-repo
    grep -h "<testcase" `find . -iname "TEST-*.xml"` | sed 's/<testcase name="\(.*\)" classname="\(.*\)" time="\(.*\)".*/\3\t\2.\1/' | sort -rn | head -n 15 >> /tmp/slower_tests.txt

    echo "" >> /tmp/slower_tests.txt

    cd /data/jenkins/jobs/Jeronimo/workspace/Repository/target/surefire-reports for unit tests
    grep -h "<testcase" `find . -iname "TEST-*.xml"` | sed 's/<testcase name="\(.*\)" classname="\(.*\)" time="\(.*\)".*/\3\t\2.\1/' | sort -rn | head -n 10 >> /tmp/slower_tests.txt

    echo "" >> /tmp/slower_tests.txt
  2. xpepper revised this gist Jan 16, 2015. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions slow_tests.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    echo `date` >> /tmp/slower_tests.txt
    echo "" >> /tmp/slower_tests.txt

    cd /data/jenkins/jobs/IntegrationTest/workspace/Integration/target/failsafe-reports
    grep -h "<testcase" `find . -iname "TEST-*.xml"` | sed 's/<testcase name="\(.*\)" classname="\(.*\)" time="\(.*\)".*/\3\t\2.\1/' | sort -rn | head -n 15 >> /tmp/slower_tests.txt

    echo "" >> /tmp/slower_tests.txt
    cd /data/jenkins/jobs/Jeronimo/workspace/Repository/target/surefire-reports for unit tests
    grep -h "<testcase" `find . -iname "TEST-*.xml"` | sed 's/<testcase name="\(.*\)" classname="\(.*\)" time="\(.*\)".*/\3\t\2.\1/' | sort -rn | head -n 10 >> /tmp/slower_tests.txt
  3. xpepper revised this gist Jan 16, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Jenkins top slowest tests.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Just connect to your Jenkins instance, localize the workspace folder (e.g. ``/data/jenkins/jobs/Jeronimo/lastStable``) and then issue this shell command:
    Just connect to your Jenkins instance, localize the junit tests report folder (e.g. ``/data/jenkins/jobs/Jeronimo/workspace/Repository/target/surefire-reports``) and then issue this shell command:

    ```
    grep -h "<testcase" `find . -iname "TEST-*.xml"` | sed 's/<testcase name="\(.*\)" classname="\(.*\)" time="\(.*\)".*/\3\t\2.\1/' | sort -rn | head
  4. xpepper revised this gist Jan 16, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Jenkins top slowest tests.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Just connect to your Jenkins instance, localize the workspace folder and then issue this shell command:
    Just connect to your Jenkins instance, localize the workspace folder (e.g. ``/data/jenkins/jobs/Jeronimo/lastStable``) and then issue this shell command:

    ```
    grep -h "<testcase" `find . -iname "TEST-*.xml"` | sed 's/<testcase name="\(.*\)" classname="\(.*\)" time="\(.*\)".*/\3\t\2.\1/' | sort -rn | head
  5. xpepper revised this gist Jan 3, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Jenkins top slowest tests.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    just connect to your Jenkins instance, localize the workspace folder and then issue this shell command:
    Just connect to your Jenkins instance, localize the workspace folder and then issue this shell command:

    ```
    grep -h "<testcase" `find . -iname "TEST-*.xml"` | sed 's/<testcase name="\(.*\)" classname="\(.*\)" time="\(.*\)".*/\3\t\2.\1/' | sort -rn | head
  6. xpepper renamed this gist Jan 3, 2015. 1 changed file with 2 additions and 0 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    just connect to your Jenkins instance, localize the workspace folder and then issue this shell command:

    ```
    grep -h "<testcase" `find . -iname "TEST-*.xml"` | sed 's/<testcase name="\(.*\)" classname="\(.*\)" time="\(.*\)".*/\3\t\2.\1/' | sort -rn | head
    ```
  7. xpepper created this gist Nov 17, 2014.
    3 changes: 3 additions & 0 deletions Jenkins top ten lowest tests.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    ```
    grep -h "<testcase" `find . -iname "TEST-*.xml"` | sed 's/<testcase name="\(.*\)" classname="\(.*\)" time="\(.*\)".*/\3\t\2.\1/' | sort -rn | head
    ```