ruby on rails - Automatically run tests on deploy with capistrano -
is there way have capistrano run unit tests on rails app when run cap deploy
, , fail if don't pass? know can , should done deployer, i'd love automatic. ideas appreciated.
thanks in advance!
edit: ended using this solution.
this capistrano task run unit tests on server being deployed, in production mode:
desc "run full tests on deployed app." task :run_tests run "cd #{release_path} && rails_env=production rake && cat /dev/null > log/test.log" end
found solution here: http://marklunds.com/articles/one/338
:d
Comments
Post a Comment