Skip to content

Commit

Permalink
Update history & readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Gunderloy authored and knzconnor committed Oct 12, 2009
1 parent 5d74c3e commit ffba1bc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 4 additions & 0 deletions 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!
Expand Down
19 changes: 17 additions & 2 deletions README.textile
Expand Up @@ -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.