Supportng overrides for package BasePath and PrivateBinPath in console
This commit is contained in:
Родитель
d11720568f
Коммит
50508eb421
|
@ -73,7 +73,13 @@ namespace NUnit.ConsoleRunner
|
|||
public bool noshadow;
|
||||
|
||||
[Option (Description = "Disable use of a separate thread for tests")]
|
||||
public bool nothread;
|
||||
public bool nothread;
|
||||
|
||||
[Option(Description = "Base path to be used when loading the assemblies")]
|
||||
public string basepath;
|
||||
|
||||
[Option(Description = "Additional directories to be probed when loading assemblies, separated by semicolons")]
|
||||
public string privatebinpath;
|
||||
|
||||
[Option(Description = "Set timeout for each test case in milliseconds")]
|
||||
public int timeout;
|
||||
|
|
|
@ -311,6 +311,17 @@ namespace NUnit.ConsoleRunner
|
|||
domainUsage = DomainUsage.Multiple;
|
||||
}
|
||||
|
||||
if (options.basepath != null && options.basepath != string.Empty)
|
||||
{
|
||||
package.BasePath = options.basepath;
|
||||
}
|
||||
|
||||
if (options.privatebinpath != null && options.privatebinpath != string.Empty)
|
||||
{
|
||||
package.AutoBinPath = false;
|
||||
package.PrivateBinPath = options.privatebinpath;
|
||||
}
|
||||
|
||||
#if CLR_2_0 || CLR_4_0
|
||||
if (options.framework != null)
|
||||
framework = RuntimeFramework.Parse(options.framework);
|
||||
|
@ -326,10 +337,9 @@ namespace NUnit.ConsoleRunner
|
|||
|
||||
package.Settings["ProcessModel"] = processModel;
|
||||
package.Settings["DomainUsage"] = domainUsage;
|
||||
if (framework != null)
|
||||
package.Settings["RuntimeFramework"] = framework;
|
||||
|
||||
|
||||
if (framework != null)
|
||||
package.Settings["RuntimeFramework"] = framework;
|
||||
|
||||
if (domainUsage == DomainUsage.None)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче