简体   繁体   中英

How to run multiple testcases in ruby using test:unit

I have used rake but rake combines one or more test suite as per my knowledge.

I need some method where I can do

ruby testsuite.rb 1 2 3 5 8 9 

so here the desired testcases in the testsuite should run.

I am able to run a single test case using

ruby testsuite.rb --name testcase_name

ruby testsuite.rb --name accepts regular expression and can match more than one test. For example to run test1 and test2 in test_suite.rb, you can do this:

ruby test_suite.rb --name "/test1|test2/"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM