SharpDevelop Community

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

SharpDevelop 3.0 beta 1 problem with nunit

Last post 04-12-2008 10:09 PM by Turnkey. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-02-2008 3:16 AM

    SharpDevelop 3.0 beta 1 problem with nunit

    I have a solution that I created with #develop 2.2.  In it I have test that look like this:

            [Test] [Category("Short")] public void TestClient ()
            {
                // ...
            }
           
            [Test] [Category("Long")] public void TestAgent ()
            {
                // ...

     The tests run fine (with or without the Category attrs).  But the Nunit "view" window does show the individual tests, so I can only run all or none of them.  Again this is true with or without the Category attrs.

     This worked under 2.2

    Is there a special version of nunit required with 3.0?

    Thanks,

    -'Key 

    -Turnkey
    Filed under: , ,
  • 04-05-2008 2:34 PM In reply to

    Re: SharpDevelop 3.0 beta 1 problem with nunit

    I couldn't reproduce it just using the methods you defined.

    Do you have a namespace called Test in the project? Is this referred to in a using statement in the test class you have written? Or is the class itself called Test or one such a class exists in the project? There is a problem with SharpDevelop's parser when determing an attribute's namespace. You can get around the problem by renaming the class or namespace to something other than Tes.

  • 04-12-2008 10:09 PM In reply to

    Re: SharpDevelop 3.0 beta 1 problem with nunit

     Yep, my Test class was named "Test", a rename worked around the problem.  Thanks!

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