Forum: Rails Engines New plugin doesn't pickup tests?

Posted by Michael Moen (Guest)
on 2007-04-02 06:03
(Received via mailing list)
I'm putting together a new plugin for internal use and I have a
feeling I'm missing something. I have the test/* directories setup:

./test/test_helper.rb
./test/fixtures/users.yml
./test/functional/users_controller_test.rb
./test/unit/user_test.rb

but running rake test:plugins merely produces:

(in /Users/mmoen/sites/plugintest)
/opt/local/bin/ruby -Ilib:test "/opt/local/lib/ruby/gems/1.8/gems/
rake-0.7.2/lib/rake/rake_test_loader.rb"
Loaded suite /opt/local/bin/rake
Started

Finished in 0.000483 seconds.

0 tests, 0 assertions, 0 failures, 0 errors

Everything else seems to be working I can interact with the models in
the console and plugin_migrations are working.

Thanks in advance.
Posted by James Adam (Guest)
on 2007-04-02 11:00
(Received via mailing list)
Try rake test:plugins:all - the default (without engines) plugin
mechanism doesn't deal with functional/unit tests in the same way as a
rails application.
Posted by Michael Moen (Guest)
on 2007-04-02 19:46
(Received via mailing list)
James-

rake test:plugins:all didn't run them either, but rake test:plugins
PLUGIN=name did

Thanks-
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.