producer-core/features/cli/debug.feature
Thibault Jouan dbe7fea204 Fix backtrace filtering for producer own code
Using /producer-\w+ as pattern is incorrect, we have no guarantee that
the canonical repository or gem name will be included in the install
path. Just use /producer pattern to match lib files or executables.
2015-04-04 20:15:22 +00:00

14 lines
527 B
Gherkin

Feature: CLI debug option
Scenario: reports recipe errors with their cause
Given a recipe with an error
When I execute the recipe with option -d
Then the output must match /\ARuntimeError:.*\n\ncause:\nRuntimeError:/
Scenario: does not exclude anything from backtrace
Given a recipe using a remote
When I execute the recipe on unknown remote target with option -d
Then the output must contain "producer"
And the output must contain "net-ssh"
And the output must contain ruby lib directory