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/
--
Phlip
http://www.oreilly.com/catalog/9780596510657/
"Test Driven Ajax (on Rails)"
assert_xpath, assert_javascript, & assert_ajax
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---