11 Feb
CTO of Visuality

Running RSpec tests before deploying with Capistrano v3

For small projects which do not have CI integration, RSpec tests can be run just before deployment. So you will be always sure that you are not deploying bad code at any time.

Add this code in your deploy.rb file.

before :starting, :run_tests do
  puts 'Running tests before deploy'

  unless system 'rspec'
    puts 'Tests are failed deployment is being aborted'


Referenced [https://jasonparraga.com/running-a-minitest-test-suite-before-deploying-with-capistrano/]

A lot of friends ask me for advice on choosing a good software house. Here you will find my thoughts on the subject:)

The 2015 comes to an end and It needs some brief summary as the new one - even greater - 2016 comes.