Permalink
Browse files

Added tool for figuring out which specs are slow.

  • Loading branch information...
1 parent d195ded commit e34298a006544c3a23f17b0287a452878f6ca72d @jimlindstrom committed Apr 14, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 tools/time_specs.sh
View
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+for i in `/bin/ls spec/*spec.rb`; do
+ /usr/bin/time -f "%E" rspec -c -fd -I. -Ispec $i > /dev/null 2>/tmp/jbl_time.txt
+ ELAPSED=`cat /tmp/jbl_time.txt`; echo "$ELAPSED $i"
+ rm /tmp/jbl_time.txt
+done

0 comments on commit e34298a

Please sign in to comment.