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:
Livar Cunha 2016-08-25 16:01:32 -07:00
parent 7e556e37d2
commit 55c00a7e45
13 changed files with 256 additions and 28 deletions

View file

@ -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}");

View file

@ -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",