summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Davis <ryand@zenspider.com>2014-03-24 15:02:03 -0800
committerRyan Davis <ryand@zenspider.com>2014-03-24 15:02:03 -0800
commitadd12283a835a879353ce0dc8f326f98b2b08434 (patch)
tree6f83ebdcd58979ae95329756d42be3580ed4a93a
parentd8b8089a96442bedb5b4b0e4e13785efe0f6423d (diff)
downloadhoe-add12283a835a879353ce0dc8f326f98b2b08434.tar.gz
+ Added test:slow task so I don't have to remember sort's flags anymore.
[git-p4: depot-paths = "//src/hoe/dev/": change = 9297]
-rw-r--r--lib/hoe/test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/hoe/test.rb b/lib/hoe/test.rb
index 05bda25..72d6066 100644
--- a/lib/hoe/test.rb
+++ b/lib/hoe/test.rb
@@ -108,6 +108,13 @@ module Hoe::Test
end
end
+ if testlib == :minitest then
+ desc "Show bottom 25 tests wrt time."
+ task "test:slow" do
+ sh "rake TESTOPTS=-v | sort -n -k2 -t= | tail -25"
+ end
+ end
+
default_tasks << :test
end