~ubuntu-branches/ubuntu/vivid/foodcritic/vivid-proposed

« back to all changes in this revision

Viewing changes to features/continuous_integration_support.feature

  • Committer: Package Import Robot
  • Author(s): Stefano Rivera
  • Date: 2013-06-11 00:34:40 UTC
  • Revision ID: package-import@ubuntu.com-20130611003440-czusooxs9rrpe6sb
Tags: upstream-2.1.0
ImportĀ upstreamĀ versionĀ 2.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Feature: Continuous Integration Support
 
2
 
 
3
  In order to be able to quickly identify problems with my cookbooks
 
4
  As a developer
 
5
  I want to be able to fail the build for a subset of warnings
 
6
 
 
7
  Scenario: Command help
 
8
    Given I have installed the lint tool
 
9
     When I run it on the command line with the help option
 
10
     Then the usage text should include an option for specifying tags that will fail the build
 
11
 
 
12
  Scenario Outline: Fail the build for certain tags
 
13
    Given a cookbook that matches rules <cookbook_matches>
 
14
    When I check the cookbook specifying tags <tag_arguments>
 
15
    Then the warnings shown should be <warnings_shown>
 
16
     And the build status should be <build_status>
 
17
 
 
18
  Examples:
 
19
    | cookbook_matches  | tag_arguments       | warnings_shown    | build_status |
 
20
    | FC002,FC003,FC004 |                     | FC002,FC003,FC004 | successful   |
 
21
    | FC002,FC003,FC004 | -t style            | FC002,FC004       | successful   |
 
22
    | FC002,FC003,FC004 | -f style            | FC002,FC003,FC004 | failed       |
 
23
    | FC002,FC003,FC004 | -f FC005            | FC002,FC003,FC004 | successful   |
 
24
    | FC002,FC003,FC004 | -f FC003,FC004      | FC002,FC003,FC004 | failed       |
 
25
    | FC002,FC003,FC004 | --epic-fail FC003   | FC002,FC003,FC004 | failed       |
 
26
    | FC002,FC003       | -f any              | FC002,FC003       | failed       |
 
27
    | FC002,FC003       | -f any -f ~FC014    | FC002,FC003       | failed       |
 
28
    | FC002,FC003       | -f any,~FC014       | FC002,FC003       | failed       |
 
29
    | FC002             | -f ~FC002           | FC002             | successful   |
 
30
    | FC002,FC003       | -f ~FC002           | FC002,FC003       | failed       |
 
31
    | FC002,FC003       | -f any -f ~FC002    | FC002,FC003       | failed       |
 
32
    | FC002             | -f any,~FC002       | FC002             | failed       |
 
33
    | FC002             | -f any -f ~FC002    | FC002             | successful   |
 
34
    | FC002,FC003       | -f any,~FC002       | FC002,FC003       | failed       |
 
35
    | FC002,FC003       | -f ~FC002 -f ~FC004 | FC002,FC003       | failed       |