How do I get autotest (ZenTest) to see my namespaced stuff?
Posted
by Blaine LaFreniere
on Stack Overflow
See other posts from Stack Overflow
or by Blaine LaFreniere
Published on 2010-03-24T23:15:05Z
Indexed on
2010/03/25
0:23 UTC
Read the original article
Hit count: 674
Autotest is supposed to map my tests to a class, I believe. When I have class Foo
and class FooTest
, autotest should see FooTest
and say, "Hey, this test corresponds to the unit Foo
, so I'll look for changes there and re-run tests when changes occur." And that works, however...
When I have Foo::Bar
and Foo::BarTest
, autotest doesn't seem to make the connection, and whenever I edit Foo::Bar
, autotest does not re-run Foo::BarTest
Am I doing something wrong?
EDIT: File structure might be helpful. Here it is:
Module and class files:
lib/foo.rb
lib/foo/bar.rb
lib/foo/baz.rb
Test files:
test/unit/foo/bar.rb
test/unit/baz.rb
I would think that autotest is able to make the connection between Foo::Bar
and Foo::BarTest
, but apparently it doesn't.
© Stack Overflow or respective owner