parent
ef0ca39da1
commit
4e496c3523
36 changed files with 481 additions and 59 deletions
|
@ -17,7 +17,8 @@ namespace Microsoft.Dotnet.Tools.Test.Tests
|
|||
AppContext.BaseDirectory,
|
||||
"TestAssets",
|
||||
"TestProjects",
|
||||
"ProjectWithTests",
|
||||
"ProjectsWithTests",
|
||||
"NetCoreAppOnlyProject",
|
||||
"project.json");
|
||||
|
||||
private TestCommand _testCommand;
|
||||
|
@ -49,7 +50,7 @@ namespace Microsoft.Dotnet.Tools.Test.Tests
|
|||
[Fact]
|
||||
public void It_creates_a_runner_if_the_args_do_no_include_help()
|
||||
{
|
||||
var result = _testCommand.DoRun(new[] { ProjectJsonPath });
|
||||
var result = _testCommand.DoRun(new[] { ProjectJsonPath, "-f", "netcoreapp1.0" });
|
||||
|
||||
result.Should().Be(0);
|
||||
_dotnetTestRunnerFactoryMock.Verify(d => d.Create(It.IsAny<int?>()), Times.Once);
|
||||
|
@ -58,7 +59,7 @@ namespace Microsoft.Dotnet.Tools.Test.Tests
|
|||
[Fact]
|
||||
public void It_runs_the_tests_through_the_DotnetTestRunner()
|
||||
{
|
||||
var result = _testCommand.DoRun(new[] { ProjectJsonPath });
|
||||
var result = _testCommand.DoRun(new[] { ProjectJsonPath, "-f", "netcoreapp1.0" });
|
||||
|
||||
_dotnetTestRunnerMock.Verify(
|
||||
d => d.RunTests(It.IsAny<ProjectContext>(), It.IsAny<DotnetTestParams>()),
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"exclude": "Compile"
|
||||
},
|
||||
"xunit": "2.1.0",
|
||||
"dotnet-test-xunit": "1.0.0-dev-140469-38",
|
||||
"dotnet-test-xunit": "1.0.0-rc2-162081-13",
|
||||
"moq.netcore": "4.4.0-beta8",
|
||||
"FluentAssertions": "4.2.2"
|
||||
},
|
||||
|
@ -28,8 +28,7 @@
|
|||
}
|
||||
},
|
||||
"content": [
|
||||
"../../TestAssets/TestProjects/ProjectWithTests/project.json",
|
||||
"../../TestAssets/TestProjects/ProjectWithTests/project.lock.json"
|
||||
"../../TestAssets/TestProjects/ProjectsWithTests/NetCoreAppOnlyProject/project.json"
|
||||
],
|
||||
"testRunner": "xunit"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue