Is there a way to have capistrano run unit tests on my Rails app when I run cap deploy, and fail if they don’t pass? I know this can and should be done by the deployer, but I’d love it to be automatic. Any ideas would be greatly appreciated.
Thanks in advance!
EDIT: I ended up using this as a solution.
This capistrano task will run the unit tests on the server being deployed, in production mode:
Found the solution here: http://marklunds.com/articles/one/338
😀