pnunit-agent can't run a tests from another folder
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit V2 |
Fix Released
|
Medium
|
Charlie Poole |
Bug Description
if the assembly `pnunit.tests.dll` located in another directory then the process `pnunit-agent.exe` can not download the file `pnunit-agent.exe` as a dll library.
I recommend the following modification of the file:
=== modify file src/NUnitCore/
--- src/NUnitCore/
+++ src/NUnitCore/
@@ -9,7 +9,8 @@
using System;
using System.IO;
using System.Reflection;
- using System.Collections;
+ using System.Collections;
+ using System.
/// <summary>
/// Class adapted from NUnitAddin for use in handling assemblies that are not
@@ -92,8 +93,11 @@
}
foreach( string dir in _dirs )
- {
- foreach( string file in Directory.GetFiles( dir, "*.dll" ) )
+ {
+ List<string> dllCandidates = new List<string>();
+ dllCandidates.
+ dllCandidates.
+ foreach (string file in dllCandidates)
{
string fullFile = Path.Combine( dir, file );
Related branches
Changed in nunitv2: | |
status: | New → In Progress |
assignee: | nobody → Charlie Poole (charlie.poole) |
importance: | Undecided → Medium |
Changed in nunitv2: | |
status: | Fix Committed → Fix Released |
I don't understand what the problem you want to solve is. There should be no need for the nunit core to load nunit-agent.exe - or any .exe for that matter. Rather, NUnit runs a process using the file path to nunit-agent.exe.
Can you provide a reproducible error situation?