keyongtech


  keyongtech > ruby > 10/2005

 #1  
10-30-05, 09:36 AM
Chris Roos
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?

Cheers,

Chris

[1] [url down]
 #2  
10-30-05, 10:51 AM
Christian Neukirchen
Chris Roos <chris> writes:

> 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).
...
 #3  
10-30-05, 12:38 PM
Chris Roos
Christian Neukirchen wrote:
> Chris Roos <chris> writes:
>>

>
> 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
Similar Threads
Running Unit Test Remotely

Hi, Some of my future unit / component test may run op to several hours. I would like to run them simultaneously and on a different machine. Arguably, I misuse the unit...

Restoring state of database after running a Unit test

Sorry if this is a newbie question. My application sends data (via TCP/IP sockets) to a 3rd party application which dispenses the data to various tables in a SQL Server 2005...

Why does running a Test::unit test in irb work so weirdly?

Why can't I run a Test::Unit::TestCase from IRB and have it run before I quit? I have found this problem mentioned by others. For an example, see this tutorial about...

Test::Unit running all tests with automated suite

Am I missing something when using Test::Unit in Eclipse? I am used to using JUnit and/or NUnit and being able to select a project and run all of the tests. I don't see this...

detecting running under UNIT TEST

Hi there, I use Visual Studio 2005, c# projects... I like the new unit test framework very much, it helps a lot mantaining and growing up a project with the test driven...


All times are GMT. The time now is 04:31 PM. | Privacy Policy