NUnit output
I am new to Resharper. I am using v 3.0.3 EAP Full Edition Build 3.0.548.8 in VS2008 on an XP system.
When I run a specific test, the method under test fails with an unhandled exception:
<MailHouse2.Tests> (1 test), 1 test failed
MailHouse2.Tests (1 test), 1 test failed
CassPrintSQL (1 test), 1 test failed
SplitAddressListTest, Failed: ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Para
The message is truncated at Para above. The message does not tell me what line of the method caused the fault.
When I run the standalone version of NUnit 2.4.5.NET2.0, I get the following output for the same method as above:
MailHouse2.Tests.CassPrintSQL.SplitAddressListTest : System.ArgumentOutOfRangeException : Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at MailHouse2.CASS.CassPrintSQL.SplitAddressList() in D:\Development\MailHouse2_2008\MailHouse2.CASS\CassPrintSQL.vb:line 225
at MailHouse2.Tests.CassPrintSQL.SplitAddressListTest() in D:\Development\MailHouse2_2008\MailHouse2.Tests\CassPrintSQL.cs:line 19
Is it normal for Resharper's NUnit test harness to not display the detail error message?
Thanks, Lars
Please sign in to leave a comment.
Hi larzeb,
you might want to switch on the Output Window when testing. This shows the entire exception including the call stack (see attached, parts blurred to protect my company :) ).
Hope this helps,
Frances
Attachment(s):
NUnit output window.png
Hello larzeb,
Open test output panel to see whole output.
Sincerely,
Ilya Ryzhenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
l> I am new to Resharper. I am using v 3.0.3 EAP Full Edition Build
l> 3.0.548.8 in VS2008 on an XP system.
l>
l> When I run a specific test, the method under test fails with an
l> unhandled exception:
l> <MailHouse2.Tests> (1 test), 1 test failed
l> MailHouse2.Tests (1 test), 1 test failed
l> CassPrintSQL (1 test), 1 test failed
l> SplitAddressListTest, Failed: ArgumentOutOfRangeException:
l> Index was out of range. Must be non-negative and less than the size
l> of the collection. Para
l> The message is truncated at Para above. The message does not tell me
l> what line of the method caused the fault.
l>
l> When I run the standalone version of NUnit 2.4.5.NET2.0, I get the
l> following output for the same method as above:
l>
l> MailHouse2.Tests.CassPrintSQL.SplitAddressListTest :
l> System.ArgumentOutOfRangeException : Index was out of range. Must be
l> non-negative and less than the size of the collection.
l>
l> Parameter name: index
l>
l> at
l> System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument
l> argument, ExceptionResource resource)
l> at System.ThrowHelper.ThrowArgumentOutOfRangeException()
l> at System.Collections.Generic.List`1.get_Item(Int32 index)
l> at MailHouse2.CASS.CassPrintSQL.SplitAddressList() in
l> D:\Development\MailHouse2_2008\MailHouse2.CASS\CassPrintSQL.vb:line
l> 225
l> at MailHouse2.Tests.CassPrintSQL.SplitAddressListTest() in
l> D:\Development\MailHouse2_2008\MailHouse2.Tests\CassPrintSQL.cs:line
l> 19
l> Is it normal for Resharper's NUnit test harness to not display the
l> detail error message?
l>
l> Thanks, Lars
l>