nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00359
[Bug 492231] Re: nunit-console crashes with /domain:single on multiple assembiles
** Changed in: nunitv2
Status: New => Confirmed
** Changed in: nunitv2
Assignee: (unassigned) => Charlie Poole (charlie.poole)
** Changed in: nunitv2
Importance: Undecided => Medium
--
nunit-console crashes with /domain:single on multiple assembiles
https://bugs.launchpad.net/bugs/492231
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.
Status in NUnit V2 Test Framework: Confirmed
Bug description:
Version: NUnit 2.5.2
When running nunit-console runner on multiple assemblies with /domain:single, console crashes and no tests are run
Runtime Environment -
OS Version: Microsoft Windows NT 6.0.6002 Service Pack 2
CLR Version: 2.0.50727.4200 ( Net 2.0.50727.4200 )
ProcessModel: Default DomainUsage: Single
Execution Runtime: net-2.0.50727.4200
Unhandled Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: fileName
at System.IO.FileInfo..ctor(String fileName)
at NUnit.Util.DomainManager.CreateDomain(TestPackage package)
at NUnit.Util.TestDomain.Load(TestPackage package)
at NUnit.ConsoleRunner.ConsoleUi.Execute(ConsoleOptions options)
at NUnit.ConsoleRunner.Runner.Main(String[] args)
I have debuged locally on latest trunk source code, issue seems to be in
NUnit.ConsoleRunner.ConsoleUi,
private static TestPackage MakeTestPackage( ConsoleOptions options )
changing
...
else
{
package = new TestPackage(null, options.Parameters);
domainUsage = DomainUsage.Multiple;
}
...
to
...
else
{
package = new TestPackage((string)options.Parameters[0], options.Parameters);
domainUsage = DomainUsage.Multiple;
}
...
fixed the problem for me.