Skip to content

Commit

Permalink
Added output of filename in case of failed test
Browse files Browse the repository at this point in the history
  • Loading branch information
hoppfrosch committed Sep 26, 2017
1 parent 668ab22 commit 0bb989e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OutputDebug.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class YunitOutputDebug{
this.tests.overall := this.tests.overall + 1
if IsObject(Result) {
this.tests.fail := this.tests.fail + 1
Details := "at line " Result.Line " (" Result.Message ")"
Details := "at line " Result.Line " (" Result.Message ") - (" result.file ")"
Status := "FAIL"
} else {
this.tests.pass := this.tests.pass + 1
Expand Down
2 changes: 1 addition & 1 deletion Stdout.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class YunitStdOut
{
if IsObject(Result)
{
Details := " at line " Result.Line " " Result.Message
Details := " at line " Result.Line " " Result.Message "(" Result.File ")"
Status := "FAIL"
}
else
Expand Down
2 changes: 1 addition & 1 deletion Window.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class YunitWindow
If IsObject(result)
{
hChildNode := TV_Add(TestName,Parent,this.icons.fail)
TV_Add("Line #" result.line ": " result.message,hChildNode,this.icons.detail)
TV_Add("Line #" result.line ": " result.message "(" result.line ")",hChildNode,this.icons.detail)
GuiControl, Yunit: +BackgroundRed, YunitWindowStatusBar
key := category
pos := 1
Expand Down

0 comments on commit 0bb989e

Please sign in to comment.