mattbrictson/airbrussh

It would be nice to have a capistrano+airbrussh integration test

Open

#37 opened on Jul 5, 2015

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Ruby (33 forks)github user discovery
chorehelp wanted

Repository metrics

Stars
 (524 stars)
PR merge metrics
 (PR metrics pending)

Description

Airbrussh works by hooking into capistrano, and these hooks are currently not integration tested. If capistrano were to change its APIs, there could be a situation where the airbrussh unit tests continue to pass even though it no longer works in practice. Therefore an integration test would be nice to have.

Perhaps the test would create a sample app in a temporary directory with a Gemfile containing capistrano and airbrussh (the latter would point to the version of airbrussh under test using path), then:

  • bundle exec cap install STAGES=test
  • Add require "airbrussh/capistrano" to the generated Capfile
  • Comment out set :format, :pretty in the generated deploy.rb (if necessary)
  • Add a sample rake task to deploy.rb that executes something with the local backend
  • bundle exec cap test sample_task

Verify that that output is indeed airbrussh-formatted and that cap exited successfully.

Contributor guide