mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
e7399f4692
This commit removes the existing 'local' integration tests and replaces them with Cucumber features running against VMs. At this stage, some of the assertions are pending due to the limited nature of the response returned when executing commands through Vagrant, but the framework is there as a starting point to build upon. To run the suite: bundle exec cucumber During development, avoid scraping the VM between runs: bundle exec cucumber KEEPING_RUNNING=1 Ultimately I would like to see the `TestApp` helpers along with the Vagrant integration packaged and available for use when developing gems that work with Cap. For now though, this closes #641
16 lines
476 B
Gherkin
16 lines
476 B
Gherkin
Feature: Installation
|
|
|
|
Background:
|
|
Given a test app with the default configuration
|
|
|
|
Scenario: With default stages
|
|
When I run cap "install"
|
|
Then the deploy.rb file is created
|
|
And the default stage files are created
|
|
And the tasks folder is created
|
|
|
|
Scenario: With specified stages
|
|
When I run cap "install STAGES=qa,production"
|
|
Then the deploy.rb file is created
|
|
And the specified stage files are created
|
|
And the tasks folder is created
|