[yast-devel] "rake test" fails in a plugin
Hi, we've found that this was failing: cd rest-service/plugins/language rake test The solution was to remove the test task from the local Rakefile (rest-service/plugins/language/Rakefile). The intent had been probably to run all tests, but that is done by default anyway (possibly only since we started to refer to the parent rails app?). You know that this is the same problem when rake_test_loader gets a mixture of unit and functional test cases, like here: /usr/bin/ruby -Ilib:lib:test:/home/mvidner/svn/rest-service/webservice "/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb" "test/unit/language_test.rb" "test/functional/language_controller_test.rb" /home/mvidner/svn/rest-service/webservice/config/environment.rb Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader Started EE Finished in 0.06988 seconds. 1) Error: test_getter(LanguageTest): NameError: uninitialized constant LanguageTest::Language /test/unit/language_test.rb:33:in `setup' 2) Error: test_setter(LanguageTest): NameError: uninitialized constant LanguageTest::Language /test/unit/language_test.rb:33:in `setup' 2 tests, 0 assertions, 0 failures, 2 errors rake aborted! Command failed with status (1): [/usr/bin/ruby -Ilib:lib:test:/home/mvidner...] (See full trace by running task with --trace) -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (1)
-
Martin Vidner