Test Infrastructure Updates
Creates a TestDirectory abstraction under TestInstance to manage creation of test-specific working directories Enables TestAssetManager to create TestDirectory instances Enables fluent addition of Environment Variables to TestCommand Adds PathUtility support for ensuring a directory exists
This commit is contained in:
parent
6c1ef959cc
commit
94e620088e
5 changed files with 183 additions and 2 deletions
|
@ -193,5 +193,12 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
|
|||
process.Start();
|
||||
return process;
|
||||
}
|
||||
|
||||
public TestCommand WithEnvironmentVariable(string name, string value)
|
||||
{
|
||||
Environment.Add(name, value);
|
||||
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue