Home > Ruby, Testing, Watir > Ruby unit tests – run only one test method

Ruby unit tests – run only one test method

30 March, 2006

What if you don’t wish to run all the unit tests in your test case?

You can tell ruby to run only one test method by passing in the name of the test:

  ruby test_mytestcase.rb --name test_just_this_method
Advertisements
Categories: Ruby, Testing, Watir
%d bloggers like this: