Running one test with test/unit

C

Chris Roos

Christian said:
Hi,

As per this page[1], it is possible to run one test from a testcase by
using..

# ruby [programfile] -n [testmethod]

I'm probably missing something obvious but I really don't know why it
works. Can anyone shed some light?


test/unit simply parses ARGV.

#604<2|>lilith:~/projects/rightyear# ruby test_rightyear.rb --help
Test::Unit automatic runner.
Usage: test_rightyear.rb [options] [-- untouched arguments]
...
-n, --name=NAME Runs tests matching NAME.
(patterns may be used).
...

Indeed I was missing something obvious. Thanks for the pointer.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top