Merge pull request #9285 from dotnet/merges/release/2.1.4xx-to-master
Merge release/2.1.4xx to master
This commit is contained in:
commit
baeb21728d
4 changed files with 35 additions and 12 deletions
|
@ -110,6 +110,27 @@ namespace Microsoft.DotNet.Cli.Test.Tests
|
|||
result.ExitCode.Should().Be(1);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GivenAFailingTestItDisplaysFailureDetails()
|
||||
{
|
||||
var testInstance = TestAssets.Get("XunitCore")
|
||||
.CreateInstance()
|
||||
.WithSourceFiles();
|
||||
|
||||
var result = new DotnetTestCommand()
|
||||
.WithWorkingDirectory(testInstance.Root.FullName)
|
||||
.ExecuteWithCapturedOutput();
|
||||
|
||||
result.ExitCode.Should().Be(1);
|
||||
|
||||
if (!DotnetUnderTest.IsLocalized())
|
||||
{
|
||||
result.StdOut.Should().Contain("Failed TestNamespace.VSTestXunitTests.VSTestXunitFailTest");
|
||||
result.StdOut.Should().Contain("Assert.Equal() Failure");
|
||||
result.StdOut.Should().Contain("Total tests: 2. Passed: 1. Failed: 1. Skipped: 0.");
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void TestWillNotBuildTheProjectIfNoBuildArgsIsGiven()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue