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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -