File: deploy_failure.feature

package info (click to toggle)
capistrano 3.19.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 804 kB
  • sloc: ruby: 5,351; makefile: 5
file content (17 lines) | stat: -rw-r--r-- 513 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Feature: Deploy failure

  Background:
    Given a test app with the default configuration
    And a custom task that will simulate a failure
    And a custom task to run in the event of a failure
    And servers with the roles app and web

  Scenario: Triggering the custom task
    When I run cap "deploy:starting"
    But an error is raised
    Then the failure task will not run

  Scenario: Triggering the custom task
    When I run cap "deploy"
    But an error is raised
    Then the failure task will run