Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#764 nunit2 task does not run internal test fixtures

0.91-alpha2
open
nobody
Tasks (408)
5
2011-06-16
2011-06-16
indr
No

I switched from TeamCitys NUnit Launcher back to the nunit2 task and noticed after several hours of searching why lesser tests are run that the test fixtures must not be internal, they have to be public. Quite annoying because NUnit states on their home page: a test fixture class may be public, protected, private or internal.

Discussion

  • indr
    indr
    2011-06-16

    • summary: nunit2 task does not run interal test fixtures --> nunit2 task does not run internal test fixtures
     
  • indr
    indr
    2011-06-16

    Fixed typo in summary.

     
  • Dominik Guder
    Dominik Guder
    2011-06-16

    Nant's nunit2 task uses nunit 2.2.8 and class visibility was opened in 2.5.3 first.
    It's on our tasklist to either update nunit or provide some kind of dynamic loading. But for now my only idea is to use <exec> task and run nunit-console. This is also true if you need to test .net 4.0 asseblies. IMHO this is not possible with 2.2.8.

     
  • Ryan Boggs
    Ryan Boggs
    2011-06-16

    Just to add on to Dominik's comment below...
    I did look into upgrading NUnit on NAnt to something more current (2.5.9+) recently but after looking into this, I realized that such an upgrade would require a significant rewrite of the nunit NAnt task since much of the underlying NUnit API has changed drastically since 2.2. Like Dominik said, plans are in the works but they are on hold for the time being.