question about running unit tests

I have two questions regarding running unit tests

1. Is there a way to run a specific unit test using rake command,.. sth like "rake test:units xxxxx". I'd like to achieve the same effect as using, for example, "ruby test/unit/product_test.rb" command

2. Is there a way to somehow mark a test not to be run when using "rake test:units" command?

Apologies on behalf of the group for the late answer!

Marko Vuksanovic wrote:

I have two questions regarding running unit tests

1. Is there a way to run a specific unit test using rake command,.. sth like "rake test:units xxxxx". I'd like to achieve the same effect as using, for example, "ruby test/unit/product_test.rb" command

rake test:units TESTOPTS=-ntest_this_case_only

2. Is there a way to somehow mark a test not to be run when using "rake test:units" command?

Don't. Because you never 'svn ci' without passing all your tests first (and because you put the tests and 'svn ci' inside a rake task called 'rake ci'), all your tests should always pass.

To temporarily suspend a test, put return # TODO at its start. And note that the -n option takes a regexp, such as -n/test_subset/