Rspec _and_ Rails test::unit tests

There’s so much different chatter about this issue and I was wondering
if any of you could spare the time to assist.

Start a new Rails3 project. Initialize rspec for the project. Now run
autotest. Ok, great, “loading autotest/rails_rspec2”

Now run autotest -s rails. Ok, great, the Rails test suite in test/
runs.

How the heck do I get both to run by just running “autotest” ?

I’ve tried adding mappings and also Autotest.add_discovery calls
in .autotest, in autotest/discover.rb, etc. and always get screwed up
results.

Thanks for your time. Again, all that should need to be done is:

  • rails new someapp && cd someapp
  • rails generate rspec:install
  • (magic configuration here)
  • autotest

I’d like to be able to add the magic configuration, run autotest, and
see that both spec/* and test/* run.

On Apr 10, 2011, at 6:45 PM, ybakos wrote:

I’d like to be able to add the magic configuration, run autotest, and
see that both spec/* and test/* run.

AFAIK, it’s not supported. Autotest only supports invoking a single
subclass of Autotest at a time, and RSpec’s is designed to run specs.

HTH,
David

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs