[rspec-users] Autotest Doesn't Run Old Test::Unit Tests After Install

David Chelimsky dchelimsky at gmail.com
Tue Aug 5 19:39:57 EDT 2008

On Tue, Aug 5, 2008 at 12:19 PM, Matt Wynne <lists at ruby-forum.com> wrote:
> Hi,
> We have a biggish rails app with a bunch of 'legacy' Test::Unit tests,
> but we're moving over to rspec for all our new work.
> We're going to be carrying these legacy tests around for a good while
> though, so they need to play together nicely.
> Before I installed the rspec plugins, autotest would run the Test::Unit
> tests in the project if I just called the autotest command from the root
> of the rails app.
> Now, when I do the same thing, it just runs the specs... and that's it -
> the old Test::Unit tests are ignored. I've attached the output FYI.
> I'd really like autotest to watch / run both rspec and Test::Unit tests
> in case my changes break either type of test. Obviously I can still use
> rake to run both, but I'd like to know I'll get the instant feedback.
> Plus I'm just intrigued about what's going on! I've tried looking at the
> AutoTest code in the vendor/plugins/rspec* directories but I'm a bit too
> new to ruby (second week as a pro!) to figure out what's going on in
> there.

The latest rspec code in git introduces an autospec command that runs
specs, leaving autotest to run the stuff in the test directory. This
doesn't solve your problem, but might be useful information.

To run both tests and specs you'll have to add a .autotest file and
modify the mappings between subject files and the tests and examples
that drive them. Check out
and the ZenTest documentation for pointers on this.


> Attachments:
> http://www.ruby-forum.com/attachment/2490/autotest-output.txt
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list