SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

NUnit output line numbers arent interpreted incorrect in SharpDevelop

Last post 01-17-2007 7:07 PM by MattWard. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-17-2007 2:35 PM

    NUnit output line numbers arent interpreted incorrect in SharpDevelop

    I am running SharpDevelop 2.1 build 2201.

    When I run Unit-Tests from with the IDE I get the following output:

    NUnit version 2.2.9
    Copyright (C) 2002-2003 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov, Charlie Poole.
    Copyright (C) 2000-2003 Philip Craig.
    All Rights Reserved.

    OS Version: Microsoft Windows NT 5.1.2600 Service Pack 2    .NET Version: 2.0.50727.42

    Namespace filter: Tests
    ..................................................................................................................F.F.F.................................................
    Tests run: 165, Failures: 3, Not run: 0, Time: 1.047 seconds

    Failures:
    1) Tests.ProjectManagerTest.TestUnitUnderTestAdd :
        String lengths are both 2.
        Strings differ at index 1.
        expected: <"11">
         but was: <"10">
        -------------^
       bei Tests.ProjectManagerTest.TestUnitUnderTestAdd() in D:\app\Tests\ProjectManagerTest.vb:Zeile 332.

    2) Tests.ProjectManagerTest.TestUnitUnderTestDelete :
        String lengths differ.  Expected length=1, but was length=2.
        Strings differ at index 0.
        expected: <"9">
         but was: <"10">
        ------------^
       bei Tests.ProjectManagerTest.TestUnitUnderTestDelete() in D:\app\Tests\ProjectManagerTest.vb:Zeile 341.

    3) Tests.ProjectManagerTest.TestUnitUnderTestRename :
        String lengths differ.  Expected length=10, but was length=6.
        Strings differ at index 0.
        expected: <"New Name 1">
         but was: <"Unit 1">
        ------------^
       bei Tests.ProjectManagerTest.TestUnitUnderTestRename() in D:\app\Tests\ProjectManagerTest.vb:Zeile 322.

     Seems like I cant upload images so I will describe the contents of the Error Pane:

    • The line number for 1) is 328
    • The line number for 2) is 337
    • The line number for 3) is 313
    I dont know why the IDE seems to add lines.
    Filed under:
  • 01-17-2007 7:07 PM In reply to

    Re: NUnit output line numbers arent interpreted incorrect in SharpDevelop

    It's a bug that you have found. The line numbers are extracted from the stack trace by using a regex, but it only supports English. So in your case it fails to get a line number and then defaults to returning the line number of the start of the corresponding test method. That should account for the different line numbers.

Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.