Implement CLI debug option

This commit is contained in:
Thibault Jouan
2014-10-12 23:45:01 +00:00
parent 25d03d4322
commit e22d0039e1
8 changed files with 64 additions and 8 deletions
+11
View File
@@ -0,0 +1,11 @@
Feature: CLI debug option
Background:
Given a recipe with:
"""
task(:trigger_error) { fail 'some error' }
"""
Scenario: reports recipe errors
When I execute the recipe with option -d
Then the output must match /\ARuntimeError:.*\n\ncause:\nRuntimeError:/