You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Recently discovered bugs #42 and #43 would not have been caught by this simple integration test. An effective integration test would probably require the real net-ssh backend and a Vagrant box.
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
require "airbrussh/capistrano"
to the generatedCapfile
set :format, :pretty
in the generateddeploy.rb
(if necessary)deploy.rb
that executes something with the local backendbundle exec cap test sample_task
Verify that that output is indeed airbrussh-formatted and that
cap
exited successfully.The text was updated successfully, but these errors were encountered: