Permalink
Browse files

Update wording.

  • Loading branch information...
1 parent 7ebf198 commit a9762dd2f45860f61889670593b1df725f2e7edb Alexis Bernard committed Jan 20, 2013
Showing with 9 additions and 5 deletions.
  1. +1 −1 README.rdoc
  2. +6 −2 lib/top_tests.rb
  3. +2 −2 top_tests.gemspec
View
@@ -20,7 +20,7 @@ Then require top tests and just include it into your test class:
Sample output:
- Top tests:
+ Top 10 slowest tests:
0.429 ApplicationControllerTest#test_notify_error
0.322 HoneyBadgersControllerTest#test_show
0.200 BearsControllerTest#test_destroy_collection
View
@@ -56,14 +56,18 @@ def format_tests(tests)
end
def print_top_tests
- puts "\nTop tests:"
+ puts "\nTop 10 slowest tests:"
puts format_tests(top_tests.shift(10))
puts
end
def check_tests_duration
if !slow_tests.empty?
- puts "\nTEST?FAIL! #{slow_tests.count} test(s) are taking longer than #{max_duration} seconds:"
+ if slow_tests.size == 1
+ puts "\nTEST?FAIL! 1 test is taking longer than #{max_duration} seconds:"
+ else
+ puts "\nTEST?FAIL! #{slow_tests.count} tests are taking longer than #{max_duration} seconds:"
+ end
puts format_tests(slow_tests)
puts
exit 1
View
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
s.authors = ['Alexis Bernard']
s.email = ['alexis@official.fm']
s.homepage = 'https://github.com/officialfm/top_tests'
- s.summary = 'Top tests displays your 10 slowest tests after execution'
- s.description = 'Top tests displays your 10 slowest tests after execution'
+ s.summary = 'Top tests lists the 10 slowest tests after execution'
+ s.description = 'Top tests lists the 10 slowest tests after execution'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")

0 comments on commit a9762dd

Please sign in to comment.