Improve error reporting on run control evaluation

This commit is contained in:
Thibault Jouan
2015-04-15 03:38:05 +00:00
parent 747573c52e
commit 0a83563cad
3 changed files with 16 additions and 6 deletions

View File

@@ -7,3 +7,12 @@ Feature: run control file evaluation
"""
When I start uhwm
Then the output must contain "run control evaluation"
Scenario: reports run control code in backtrace on errors
Given a run control file with:
"""
'no error on first line'
fail 'fails on second line'
"""
When I start uhwm
Then the output must match /\.uhwmrc\.rb:2:.+fails on second line/