зеркало из https://github.com/dotnet/sdk.git
Removed the ItShouldShowWarningMessageOnCollectCodeCoverageThatProfilerWasNotInitialized test since it was removed but a bad branch merge reintroduced it. Set DependentUponTest as WindowsOnlyTheory since it literally runs the EXE it produces during the test.
This commit is contained in:
Родитель
3f1e67e88d
Коммит
09d9fc06b6
|
@ -10,7 +10,7 @@ namespace Microsoft.NET.Build.Tests
|
|||
{
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[WindowsOnlyTheory]
|
||||
[InlineData(ToolsetInfo.CurrentTargetFramework, true)]
|
||||
public void DependentUponTest(string targetFramework, bool isExe)
|
||||
{
|
||||
|
|
|
@ -590,30 +590,6 @@ namespace Microsoft.DotNet.Cli.Test.Tests
|
|||
{
|
||||
var testProjectDirectory = CopyAndRestoreVSTestDotNetCoreTestApp("13");
|
||||
|
||||
// Call test
|
||||
CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true)
|
||||
.WithWorkingDirectory(testProjectDirectory)
|
||||
.Execute(
|
||||
"--collect", "Code Coverage",
|
||||
"--filter", "VSTestPassTest");
|
||||
|
||||
// Verify test results
|
||||
if (!TestContext.IsLocalized())
|
||||
{
|
||||
result.StdOut.Should().Contain("No code coverage data available. Code coverage is currently supported only on Windows and Linux x64.");
|
||||
result.StdOut.Should().Contain("Total: 1");
|
||||
result.StdOut.Should().Contain("Passed: 1");
|
||||
result.StdOut.Should().NotContain("Failed!");
|
||||
}
|
||||
|
||||
result.ExitCode.Should().Be(0);
|
||||
}
|
||||
|
||||
[PlatformSpecificFact(TestPlatforms.Linux)]
|
||||
public void ItShouldShowWarningMessageOnCollectCodeCoverageThatProfilerWasNotInitialized()
|
||||
{
|
||||
var testProjectDirectory = CopyAndRestoreVSTestDotNetCoreTestApp("13");
|
||||
|
||||
// Call test
|
||||
CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true)
|
||||
.WithWorkingDirectory(testProjectDirectory)
|
||||
|
|
Загрузка…
Ссылка в новой задаче