search for: profile_tests

Displaying 1 result from an estimated 1 matches for "profile_tests".

2008 May 15
1
How to monkeypatch in a plugin
...that enables automatic profiling and benchmarking for unit tests. I need to monkeypatch Test::Unit::TestSuite to redefine the run method. Based on the example I see at http://svn.jthopple.com/plugins/count_limit_associations, I thought I should be able to simply open the class in question in /lib/profile_tests.rb, e.g. module Test module Unit class Suite def run puts "My Run Method Used" ... In init.rb, I simply have require ''profile_tests'' However, running my tests does not seem to use my definition of ''run''. Am I missing some...