From 52aa87c2d19fa723ed67c7f20f6a148cd06c0d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Pablo=20Fern=C3=A1ndez?= Date: Wed, 18 Jul 2012 17:09:22 +0200 Subject: [PATCH] Added documentation about require "ruby-prof/test" when profiling tests. --- README.rdoc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.rdoc b/README.rdoc index b73e41dc..6bc8a091 100644 --- a/README.rdoc +++ b/README.rdoc @@ -162,8 +162,12 @@ $ ruby g:/192/lib/ruby/gems/1.9.1/gems/ruby-prof-0.10.2/bin/ruby-prof ./some_fil Starting with the 0.6.1 release, ruby-prof supports profiling tests cases written using Ruby's built-in unit test framework (ie, test derived from -Test::Unit::TestCase). To enable profiling simply add the following line -of code to within your test class: +Test::Unit::TestCase). To enable profiling add the following line somewhere +in your test files: + + require "ruby-prof/test" + +add the following line of code to within your test class: include RubyProf::Test