MonoDevelop NUnit doesn't run NUnit tests

Bug #298822 reported by Scott Wegner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
monodevelop (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: monodevelop

I have a C# project with a suite of NUnit tests which I've been testing in MonoDevelop. I haven't touched the project in a while, but when I try to run the tests now, none of them run. It appears that something must've changed in recent versions of MonoDevelop NUnit which would cause this. I'm not sure of the last functioning version of MonoDevelop I ran the tests under, but I know it was in Hardy. I can still run the testing in compiled binaries in other programs, such as gnunit.

Steps the reproduce:
-- Launch MonoDevelop and open .mds solution file
-- Select Project > Rebuild Solution (just to be sure)
-- Select View > Unit Tests, and double-click NUnit test project to run tests
-- Select View > Test Results, which shows "Tests: 0 Failed: 0 Ignored: 0"

-- Launch gnunit, and open compiled *.dll containing NUnit test suite
-- Select "Run" to run all tests. The GUI window now shows "Tests (assertions): {not 0}" (in my case, 32 tests are run)

Let me know if you need more details, I'm not sure what the problem could be.

Revision history for this message
Scott Wegner (swegner) wrote :

I just did a test by installing previous versions of some monodevelop packages. I can confirm that the latest package versions from Hardy DO run the NUnit tests, and the latest versions in Intrepid DON'T run the tests. Specifically:

Hardy packages which WORK:
monodevelop 1.0+dfsg-1ubuntu3
monodevelop-nunit 1.0+dfsg-1ubuntu3
libnunit2.2.6-cil 2.2.8-1ubuntu2

Intrepid packages which DON'T WORK:
monodevelop 1.0+dfsg-3
monodevelop-nunit 1.0+dfsg-3

In the package changelog, the last two entries have a lot of mentions about linking against "mono-nunit" rather than the bundles nunit-- I would imagine this could be part of the problem.

For reference, the project I am trying to run tests against is maintained in a Launchpad bazaar branch, located at 'lp:pwdhash-sharp'

Revision history for this message
Greyluk (adam-ness) wrote :

I am also experiencing this problem with the intrepid packages listed above.

Revision history for this message
Scott Wegner (swegner) wrote :

For anybody having this problem, I've found a deb package of MonoDevelop 2.0 Alpha at:
http://www.getdeb.net/app/MonoDevelop

I've run into a few minor issues using it, but the NUnit tests work. This should be a temporary workaround until the Ubuntu packages are fixed.

Revision history for this message
Julian Taylor (jtaylor) wrote :

closing as fixed as all supported ubuntu versions now have >= 2.0

Changed in monodevelop (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.