Test -ror

From Sandoz

(Difference between revisions)
Jump to: navigation, search
m (Protected "Test -ror" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite)))
 
Line 14: Line 14:
spec path/to/spec/file
spec path/to/spec/file
 +
 +
 +
Loading the tests on mac
 +
----------------------------------
 +
git pull
 +
rake db:migrate
 +
 +
rake db:test:prepare
 +
 +
rake servers:start RAILS_ENV=test
 +
 +
(Then bundle install
 +
->Installing hoe (2.9.1) hoe requires RubyGems version >= 1.4. Try 'gem update --system' to update RubyGems itself
 +
 +
then  gem update --system
 +
->ok
 +
 +
then  bundle install
 +
-> 1.8/rubygems/specification.rb:1433:in `date=': invalid date format in specification: "2010-7-15" (Gem::InvalidSpecificationException)
 +
12/04/11 12:03 PM
 +
-> i commented the raise exception line
 +
 +
)
 +
 +
rake mb:setup_schema  -> music_brainz
 +
(error ->SupportVirtualPlaylistActivity)
 +
(But it returned the error : Please manually create a database called music_brainz first if you havn't already.
 +
=>no worries, make sure everything is created)
 +
 +
rake spec => rails 2
 +
rspec spec => rails 3
 +
bundle exec rspec spec
 +
 +
 +
autospec -fc from the rails home dir
 +
(then when you save a file or spec, it will run the affected tests)
 +
 +
 +
gem install growl
 +
 +
gem install autotest autotest-growl autotest-fsevent

Latest revision as of 06:44, 8 June 2011

How to test

create a database: music_social_test

then rake db:migrate RAILS_ENV=test

then rake servers:start RAILS_ENV=test

then rake spec

should get all tests passing

after that then when u are running an individual test/spec u can run:

spec path/to/spec/file


Loading the tests on mac


git pull rake db:migrate

rake db:test:prepare

rake servers:start RAILS_ENV=test

(Then bundle install ->Installing hoe (2.9.1) hoe requires RubyGems version >= 1.4. Try 'gem update --system' to update RubyGems itself

then gem update --system ->ok

then bundle install -> 1.8/rubygems/specification.rb:1433:in `date=': invalid date format in specification: "2010-7-15" (Gem::InvalidSpecificationException) 12/04/11 12:03 PM -> i commented the raise exception line

)

rake mb:setup_schema  -> music_brainz

(error ->SupportVirtualPlaylistActivity) (But it returned the error : Please manually create a database called music_brainz first if you havn't already. =>no worries, make sure everything is created)

rake spec => rails 2 rspec spec => rails 3 bundle exec rspec spec


autospec -fc from the rails home dir (then when you save a file or spec, it will run the affected tests)


gem install growl

gem install autotest autotest-growl autotest-fsevent
Personal tools