Skip to content

Commit 09d9fc0

Browse files
committed
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.
1 parent 3f1e67e commit 09d9fc0

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

test/Microsoft.NET.Build.Tests/GenerateResourceTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public GenerateResourceTests(ITestOutputHelper log) : base(log)
1010
{
1111
}
1212

13-
[Theory]
13+
[WindowsOnlyTheory]
1414
[InlineData(ToolsetInfo.CurrentTargetFramework, true)]
1515
public void DependentUponTest(string targetFramework, bool isExe)
1616
{

test/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -590,30 +590,6 @@ public void ItShouldShowWarningMessageOnCollectCodeCoverage()
590590
{
591591
var testProjectDirectory = CopyAndRestoreVSTestDotNetCoreTestApp("13");
592592

593-
// Call test
594-
CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true)
595-
.WithWorkingDirectory(testProjectDirectory)
596-
.Execute(
597-
"--collect", "Code Coverage",
598-
"--filter", "VSTestPassTest");
599-
600-
// Verify test results
601-
if (!TestContext.IsLocalized())
602-
{
603-
result.StdOut.Should().Contain("No code coverage data available. Code coverage is currently supported only on Windows and Linux x64.");
604-
result.StdOut.Should().Contain("Total: 1");
605-
result.StdOut.Should().Contain("Passed: 1");
606-
result.StdOut.Should().NotContain("Failed!");
607-
}
608-
609-
result.ExitCode.Should().Be(0);
610-
}
611-
612-
[PlatformSpecificFact(TestPlatforms.Linux)]
613-
public void ItShouldShowWarningMessageOnCollectCodeCoverageThatProfilerWasNotInitialized()
614-
{
615-
var testProjectDirectory = CopyAndRestoreVSTestDotNetCoreTestApp("13");
616-
617593
// Call test
618594
CommandResult result = new DotnetTestCommand(Log, disableNewOutput: true)
619595
.WithWorkingDirectory(testProjectDirectory)

0 commit comments

Comments
 (0)