Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update history & readme

  • Loading branch information...
commit ffba1bce8c811de5d5319101582cc9aba0420d65 1 parent 5d74c3e
@ffmike ffmike authored committed
Showing with 21 additions and 2 deletions.
  1. +4 −0 History.txt
  2. +17 −2 README.textile
View
4 History.txt
@@ -1,3 +1,7 @@
+== 0.4.5 / 2009-08-13
+
+* Implemented Test::Unit::UI::Console::TestRunner.set_test_benchmark_limits
+
== 0.0.3 / 2007-06-24
* Updated Manifest.txt so files are actually packaged in the gem. D'oh!
View
19 README.textile
@@ -50,8 +50,23 @@ RAILS_ENV=test GEM=timocratic-test_benchmark rake gems:unpack #optional, but sug
h2. Options and disabling temporarily
-By default the top 10 slowest tests are output to the console (and in Rails the whole list is dumped to test.log). To see the full dump in your console (as well as get a per-file/suite breakdown) set the env variable BENCHMARK to 'full':
+By default the top 15 slowest tests are output to the console (and in Rails the whole list is dumped to test.log). To see the full dump in your console (as well as get a per-file/suite breakdown) set the env variable BENCHMARK to 'full':
<pre><code>BENCHMARK=full rake test</code></pre>
-To disable completely, run with it set to 'false' instead.
+To disable completely, run with it set to 'false' instead.
+
+You can also customize the number of results through the Test::Unit::UI::Console::TestRunner.set_test_benchmark_limits(set_display_limit, set_suite_display_limit) method. For example, putting this line in your test_helper.rb file will output a summary of 5 slowest tests and 3 slowest test classes:
+
+<pre><code>
+Test::Unit::UI::Console::TestRunner.set_test_benchmark_limits(5, 3)
+</code></pre>
+
+And this will disable output entirely:
+
+<pre><code>
+Test::Unit::UI::Console::TestRunner.set_test_benchmark_limits(0, 0)
+</code></pre>
+
+
+

0 comments on commit ffba1bc

Please sign in to comment.
Something went wrong with that request. Please try again.