Rake test vs rake test RAILS_ENV=test

Is it bad to invoke ‘rake test’ with RAILS_ENV=test? I get
significantly different results when I do or don’t. When I don’t
include a RAILS_ENV, the migration check is done against my
development profile, but the tests seem to execute against the test
profile. When I set RAILS_ENV to test, the migration check is
performed on the test profile, but only my functional tests are run
(succesully) and then then it errors out with what looks like an empty
call to the test loader.

C:/opt/ruby/186/bin/ruby.exe -I"lib;test" “C:/opt/ruby/186/lib/ruby/
gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb”
Errors running test:units!

Am I doing something wrong?

Hi Nathan B.

I did not see any error.But why are you doing like this.No need to
specify RAILS_ENV=test The explanation is
If execute from konsole

rake #This run all tests
rake test:units #Run all unit tests only
rake test:functionals #Run only functional tests

Sijo

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