From ba0ebf5a6ef9b2f68b7ee5a03f41a4147e6ce8eb Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Sun, 20 Jan 2013 10:46:12 +0000 Subject: [PATCH] Fix unit test line number not displayed in Errors window. Send the test result from the custom NUnit console after the message and stack trace so all the information is added to the test result before the TestFinished event is fired. --- src/Tools/NUnit/nunit-console-x86.exe | Bin 32768 -> 32768 bytes src/Tools/NUnit/nunit-console.exe | Bin 32768 -> 32768 bytes .../NUnit/nunit-console/EventCollector.cs | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tools/NUnit/nunit-console-x86.exe b/src/Tools/NUnit/nunit-console-x86.exe index 86ab6752b7fe72ee050553aec79d9257239d8a5a..2f9757e5097edffca168d950ac9cea0a7fc41a1c 100644 GIT binary patch delta 126 zcmZo@U}|V!n$W>)c=GqgZf+%4=KLN81}+Ub1_m|_cOWZ&2asT@7GPjtDPrPcC}7U- z1Nw!f&8080$ErEg8CjzO3K%8n>w4{_T7)`mYXxeW@rKc DFk&E^ delta 106 zcmZo@U}|V!n$W>qqI-Q~H@A{-{tgBPE~aV$1_qWQJ}!m==KP+?`;;UlmB8#?prl4W zh>&AoVAF61vNqpV($<@75~whlEzo{*YT#!Uft)unMJo9>d=~BhlozI$wq$cg*bGeo D@TDKg diff --git a/src/Tools/NUnit/nunit-console.exe b/src/Tools/NUnit/nunit-console.exe index f71adebccec621d4ee63df6a0ce360a7b213cf6f..6c587ef8998c456c73f7a7d5152a73999891c74f 100644 GIT binary patch delta 126 zcmZo@U}|V!n$W>)bn^GcZf+%4=KLN81}+Ub1_m|_cOWZ&2asT@7GPjtDPrPcC}7U- z1Nw!f&8080$ErEKKrOMZ4cA*o0^;$`d+YP(&mh?8JYke Cr5`x} delta 106 zcmZo@U}|V!n$W>qqI-Q~H@A{-{tgBPE~aV$1_qWQJ}!m==KP+?`;;UlmB8#?prl4W zh>&AoVAF61vNqpV($<@75~whlEzo{*YT#!Uft)unMJo9>d=~BhlozI$wq$cg*bGeo D@TDKg diff --git a/src/Tools/NUnit/nunit-console/EventCollector.cs b/src/Tools/NUnit/nunit-console/EventCollector.cs index 1b385231a1..abe207e188 100644 --- a/src/Tools/NUnit/nunit-console/EventCollector.cs +++ b/src/Tools/NUnit/nunit-console/EventCollector.cs @@ -237,9 +237,9 @@ namespace NUnit.ConsoleRunner if (testResult.IsFailure || testResult.IsError) { - testResultWriter.WriteLine("Result: Failure"); testResultWriter.WriteLine("Message: " + EncodeText(testResult.Message)); testResultWriter.WriteLine("StackTrace: " + EncodeText(StackTraceFilter.Filter(testResult.StackTrace))); + testResultWriter.WriteLine("Result: Failure"); } else if (!testResult.Executed) {