1
Feature: Continuous Integration Support
3
In order to be able to quickly identify problems with my cookbooks
5
I want to be able to fail the build for a subset of warnings
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
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>
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 |