nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #02599
[Bug 928421] Re: No ProjectService instantiated in CreateDomain
how is a program supposed to know which services it needs to start? or is there a StartAllServices function?
At least a better error message than a nullreference exception would be nice.
is nunit supposed to be used this way at all?
its not very good to break all programs using it when a new service dependency is introduced like in this case.
Are similar things to be expected in nunit 2.6?
--
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
https://bugs.launchpad.net/bugs/928421
Title:
No ProjectService instantiated in CreateDomain
Status in NUnit V2 Test Framework:
Invalid
Bug description:
monodevelop was ported to nunit 2.5 in ubuntu.
Unfortunatly it does not work properly to ProjectService being null in the CreateDomain call, leading to NullReference exception.
see bug 889241
I'm not very familiar with the code, so I can't judge if monodevelop is using nunit wrong, it is a bug in porting it to 2.5 or a bug in nunit 2.5
The issue was introduced in nunit revision 3127
There is monodevelops use of CreateDomain:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/monodevelop/precise/view/head:/src/addins/NUnit/Services/ExternalTestRunner.cs#L88
Attached a patch to nunit that appears to fix the issue.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nunitv2/+bug/928421/+subscriptions
References