producer-core/features/cli/debug.feature
Thibault Jouan 1ccd95b80f Fix error formatting in debug mode
Backtrace filtering was only disabled for exception cause, this change
ensure no backtrace filtering at all in debug mode.

* Prevent main exception filtering when debug mode is enabled;
* Test when exception cause must be displayed;
* Test how exception cause must be displayed.
2015-04-03 23:18:28 +00:00

14 lines
532 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-core"
And the output must contain "net-ssh"
And the output must contain ruby lib directory