Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Update history & readme

  • Loading branch information...
commit ffba1bce8c811de5d5319101582cc9aba0420d65 1 parent 5d74c3e
Mike Gunderloy ffmike authored committed

Showing 2 changed files with 21 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 0 History.txt
  2. +17 2 README.textile
4 History.txt
... ... @@ -1,3 +1,7 @@
  1 +== 0.4.5 / 2009-08-13
  2 +
  3 +* Implemented Test::Unit::UI::Console::TestRunner.set_test_benchmark_limits
  4 +
1 5 == 0.0.3 / 2007-06-24
2 6
3 7 * Updated Manifest.txt so files are actually packaged in the gem. D'oh!
19 README.textile
Source Rendered
@@ -50,8 +50,23 @@ RAILS_ENV=test GEM=timocratic-test_benchmark rake gems:unpack #optional, but sug
50 50
51 51 h2. Options and disabling temporarily
52 52
53   -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':
  53 +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':
54 54
55 55 <pre><code>BENCHMARK=full rake test</code></pre>
56 56
57   -To disable completely, run with it set to 'false' instead.
  57 +To disable completely, run with it set to 'false' instead.
  58 +
  59 +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:
  60 +
  61 +<pre><code>
  62 +Test::Unit::UI::Console::TestRunner.set_test_benchmark_limits(5, 3)
  63 +</code></pre>
  64 +
  65 +And this will disable output entirely:
  66 +
  67 +<pre><code>
  68 +Test::Unit::UI::Console::TestRunner.set_test_benchmark_limits(0, 0)
  69 +</code></pre>
  70 +
  71 +
  72 +

0 comments on commit ffba1bc

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