14
.
11
.
2023
11
.
02
.
2016
Ruby on Rails

Running RSpec tests before deploying with Capistrano v3

Sakir Temel
ex-CTO

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'

    exit;
  end
end

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

Sakir Temel
ex-CTO

Check my Twitter

Check my Linkedin

Did you like it? 

Sign up To VIsuality newsletter

READ ALSO

Summary of Phoenix workshop at Visuality

11
.
06
.
2025
Karol Słuszniak
Ruby on Rails
Visuality
Backend

CS Lessons #001: Working with binary files

11
.
06
.
2025
Michał Młoźniak
Ruby
Software

CS Lessons #000: Introduction and motivation

11
.
06
.
2025
Michał Młoźniak
Ruby
Software

Working with 40-minute intervals

11
.
06
.
2025
Sakir Temel
Software
HR

THE MATURE TECH STARTUP DILEMMA: WHAT'S NEXT

11
.
06
.
2025
Susanna Romantsova
Startups

Win MVP workshop!

11
.
06
.
2025
Susanna Romantsova
Startups

FINTECH WEEK IN OSLO: WHATs & WHYs

11
.
06
.
2025
Susanna Romantsova
Conferences

MY FIRST MONTH AT VISUALITY

11
.
06
.
2025
Susanna Romantsova
Visuality
HR

NASA 1st global hackaton in Poland? Visuality Created it!

11
.
06
.
2025
Rafał Maliszewski
Ruby on Rails

Berlin StartupCamp 2016 summary

11
.
06
.
2025
Michał Piórkowski
Conferences
Startups

Investment Days for productivity

11
.
06
.
2025
Rafał Maliszewski
Visuality
HR

Happy new year

11
.
06
.
2025
Michał Piórkowski
Visuality

Does Norway need Polish software development?

11
.
06
.
2025
Rafał Maliszewski
Ruby on Rails

Visuality is 8 years old

11
.
06
.
2025
Michał Piórkowski
Visuality
Backend

Use less javascript plugins

11
.
06
.
2025
Michał Młoźniak
Frontend

Front-Trends 2015

11
.
06
.
2025
Adam Król
Frontend

Automatic door opener controlled through slack

11
.
06
.
2025
Sakir Temel
Backend
Software
Tutorial

Wolves Summit

11
.
06
.
2025
Michał Piórkowski
Conferences
Business

Berlin Startup Camp

11
.
06
.
2025
Michał Piórkowski
Ruby on Rails
Conferences

Why you shouldn't work at Visuality

11
.
06
.
2025
Michał Piórkowski
Visuality
HR

SaaS Meetup #People

11
.
06
.
2025
Michał Piórkowski
Conferences

Startup Safary Berlin 2015

11
.
06
.
2025
Michał Piórkowski
Conferences

Optional dependencies in gems

11
.
06
.
2025
Karol Słuszniak
Ruby on Rails
Backend

Emmet makes HTML and CSS easier

11
.
06
.
2025
Michał Piórkowski
Frontend
Tutorial