terraform-compliance supports using tags within the BDD feature files.
An example tag usage :
Feature: My test feature @nofail Scenario: #1 Ensure my specific s3 buckets are private but dont fail Given I have aws_s3_bucket defined Then it must contain acl And its value must be private Scenario: #2 Some other scenario that may fail Given .... ...
in this case,
terraform-compliance will execute both scenarios but will never fail Scenario #1 due to
@nofail tag. These tags can also be use on top of the Features instead of Scenarios. Default
Failure : error heading will also be changed with the tag name. It will be
nofail : in the example above.
| ||Do not fail the scenario.|
| ||Fail if any part of the scenario skips.|
| ||Fail if any of the indicated lines skips. Note: only GIVEN and WHEN steps can be skipped|
| ||Use case sensitive matching on all steps. (Including regexes)|
| ||Exclude given resource from this scenario.|
Please note that, nofail and noskip tags can not be used within the same scenario.