Adding a resolution chain to the command resolution chain that works based on a directory, more specifically, the publish directory.
This commit is contained in:
parent
7e556e37d2
commit
55c00a7e45
13 changed files with 256 additions and 28 deletions
|
@ -100,11 +100,11 @@ namespace Microsoft.Dotnet.Tools.Test.Tests
|
|||
[Fact]
|
||||
public void It_runs_tests_for_an_assembly_passed_as_param()
|
||||
{
|
||||
var buildCommand = new BuildCommand(_projectFilePath);
|
||||
var result = buildCommand.Execute();
|
||||
var publishCommand = new PublishCommand(_projectFilePath);
|
||||
var result = publishCommand.Execute();
|
||||
result.Should().Pass();
|
||||
|
||||
var assemblyUnderTestPath = Path.Combine(_defaultOutputPath, buildCommand.GetPortableOutputName());
|
||||
var assemblyUnderTestPath = Path.Combine(publishCommand.GetOutputDirectory(true).FullName, publishCommand.GetPortableOutputName());
|
||||
|
||||
var testCommand = new DotnetTestCommand();
|
||||
result = testCommand.Execute($"{assemblyUnderTestPath}");
|
||||
|
|
|
@ -15,6 +15,9 @@
|
|||
"Microsoft.DotNet.ProjectModel": {
|
||||
"target": "project"
|
||||
},
|
||||
"Microsoft.DotNet.InternalAbstractions": {
|
||||
"target": "project"
|
||||
},
|
||||
"System.Net.NameResolution": "4.0.0",
|
||||
"System.Net.Sockets": "4.1.0",
|
||||
"System.Runtime.Serialization.Primitives": "4.1.1",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue