From: pat eyler Date: 2005-04-16T03:57:31+09:00 Subject: Re: profiling thru test/unit On 4/15/05, Phlip wrote: > I want my tests to run in <5 seconds. Otherwise I get bored, drift off, > start downloading comics, etc. > > Eric Hodel wrote: > > > Use the -n argument to the testrunner.ruby TestZenTest.rb -n -n [NAME] will run all tests matching NAME (NAME may be a pattern) (-t [NAME] will run all the tests in the NAME testcase (NAME may be a pattern)) use it like this: $ ruby test_r43.rb -n person #runs all tests with 'person in their name' > > I can't seem to Google this up. Googling for "-n" is problematic. What > Google search terms would work? > > And what is the presumed relation between my command line (if "-n" is a > command line argument) and my explicit test runner? > > runner = Test::Unit::UI::Console::TestRunner > # noise = Test::Unit::UI::NORMAL > noise = Test::Unit::UI::VERBOSE > got = runner.run(aTestCase, noise) > > -- > Phlip > http://industrialxp.org/community/bin/view/Main/TestFirstUserInterfaces > > -- thanks, -pate ------------------------- We are often unable to tell people what they need to know, because they want to know something else, and would therefore only misunderstand what we said - the Raven (George MacDonald, Lilith)