Skip to content

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

@mattbrictson

Description

@mattbrictson

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions