Skip to content

Commit 962fbf2

Browse files
authored
Unskip tests with Done issues + dotnet-format test fix (#41684)
2 parents bfbabe0 + 5d6326a commit 962fbf2

File tree

14 files changed

+24
-49
lines changed

14 files changed

+24
-49
lines changed

eng/dotnet-format/dotnet-format-integration.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ parameters:
1414
_branchName: "main"
1515
_sha: "a3bb37003aeccad012a6e7dd220977599e8b8e65"
1616
_useParentSdk: 0
17-
# Formatting sdk fails: https://github.com/dotnet/sdk/issues/41060
18-
# - Name: sdk
19-
# _repo: "https://github.com/dotnet/sdk"
20-
# _repoName: "dotnet/sdk"
21-
# _targetSolution: "sdk.sln"
22-
# _branchName: "main"
23-
# _sha: "be25db95c376bffd508a023399ddd34392fe6458"
24-
# _useParentSdk: 0
17+
- Name: sdk
18+
_repo: "https://github.com/dotnet/sdk"
19+
_repoName: "dotnet/sdk"
20+
_targetSolution: "sdk.sln"
21+
_branchName: "main"
22+
_sha: "be25db95c376bffd508a023399ddd34392fe6458"
23+
_useParentSdk: 0
2524
- Name: project_system
2625
_repo: "https://github.com/dotnet/project-system"
2726
_repoName: "dotnet/project-system"

test/Microsoft.DotNet.GenAPI.Tests/CSharpFileBuilderTests.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2125,7 +2125,7 @@ public partial class foo
21252125
includeInternalSymbols: false);
21262126
}
21272127

2128-
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/67019")]
2128+
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/74109")]
21292129
public void TestInterfaceWithOperatorGeneration()
21302130
{
21312131
RunTest(original: """
@@ -2149,7 +2149,7 @@ public partial interface IntType
21492149
includeInternalSymbols: false);
21502150
}
21512151

2152-
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/67019")]
2152+
[Fact(Skip = "https://github.com/dotnet/roslyn/issues/74109")]
21532153
public void TestInterfaceWithCheckedOperatorGeneration()
21542154
{
21552155
RunTest(original: """

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

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

13-
[Theory(Skip = "https://github.com/microsoft/msbuild/issues/4488")]
13+
[WindowsOnlyTheory]
1414
[InlineData(ToolsetInfo.CurrentTargetFramework, true)]
1515
public void DependentUponTest(string targetFramework, bool isExe)
1616
{

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public GivenThatWeWantToBuildACppCliProjectWithTransitiveDeps(ITestOutputHelper
1212

1313
private readonly Lazy<TestAsset> _buildAsset;
1414

15-
[FullMSBuildOnlyFact(Skip = "https://github.com/dotnet/sdk/issues/3785")]
15+
[FullMSBuildOnlyFact(Skip = "https://github.com/dotnet/sdk/issues/11008")]
1616
public void It_can_generate_correct_depsJson_file()
1717
{
1818
TestAsset testAsset = _buildAsset.Value;
@@ -23,7 +23,7 @@ public void It_can_generate_correct_depsJson_file()
2323
depsJsonContent.Should().Contain("NETCoreCppCliTestC.dll", "should contain transitive reference");
2424
}
2525

26-
[FullMSBuildOnlyFact(Skip = "https://github.com/dotnet/sdk/issues/3785")]
26+
[FullMSBuildOnlyFact(Skip = "https://github.com/dotnet/sdk/issues/11008")]
2727
public void It_can_generate_all_runtimeconfig_files_to_output_folder()
2828
{
2929
TestAsset testAsset = _buildAsset.Value;
@@ -35,7 +35,7 @@ public void It_can_generate_all_runtimeconfig_files_to_output_folder()
3535
});
3636
}
3737

38-
[FullMSBuildOnlyFact(Skip = "https://github.com/dotnet/sdk/issues/3785")]
38+
[FullMSBuildOnlyFact(Skip = "https://github.com/dotnet/sdk/issues/11008")]
3939
public void It_can_generate_all_depsjson_files_to_output_folder()
4040
{
4141
TestAsset testAsset = _buildAsset.Value;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ static void Main(string[] args)
657657
.And.NotHaveStdOutContaining("Could not determine");
658658
}
659659

660-
[FullMSBuildOnlyTheory(Skip = "https://github.com/NuGet/Home/issues/8238")]
660+
[FullMSBuildOnlyTheory(Skip = "https://github.com/dotnet/NuGet.BuildTasks/issues/75")]
661661
[InlineData("4.3.3")]
662662
[InlineData("4.1.0")]
663663
public void Aliases_are_preserved_if_inbox_assembly_wins_conflict_resolution(string httpPackageVersion)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public void It_fails_if_windows_target_platform_version_is_invalid()
186186
.HaveStdOutContaining("NETSDK1140");
187187
}
188188

189-
[WindowsOnlyTheory(Skip = "https://github.com/dotnet/sdk/pull/29009")]
189+
[WindowsOnlyTheory]
190190
[InlineData(true)]
191191
[InlineData(false)]
192192
public void It_succeeds_if_windows_target_platform_version_does_not_have_trailing_zeros(bool setInTargetframework)

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public void It_should_fail_to_restore_without_workload_when_multitargeted()
109109
// .HaveStdOutContaining("android");
110110
}
111111

112-
[Fact(Skip = "https://github.com/dotnet/sdk/issues/19866")]
112+
[Fact]
113113
public void It_should_fail_to_build_without_workload_when_multitargeted()
114114
{
115115
var testProject = new TestProject()
@@ -229,7 +229,7 @@ public void It_should_import_aliased_pack()
229229
.BeEquivalentTo("true");
230230
}
231231

232-
[Fact(Skip = "https://github.com/dotnet/sdk/issues/19866")]
232+
[Fact]
233233
public void It_should_get_suggested_workload_by_GetRequiredWorkloads_target()
234234
{
235235
var mainProject = new TestProject()

test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishASingleFileApp.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public void No_runtime_files()
307307
}
308308

309309

310-
[RequiresMSBuildVersionTheory("17.0.0.32901", Skip = "https://github.com/dotnet/runtime/issues/60308")]
310+
[RequiresMSBuildVersionTheory("17.0.0.32901")]
311311
[InlineData(true)]
312312
[InlineData(false)]
313313
public void It_supports_composite_r2r(bool extractAll)

test/Microsoft.NET.Sdk.Razor.Tests/DesignTimeBuildIntegrationTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void DesignTimeBuild_DoesNotRunRazorTargets()
3131
new FileInfo(Path.Combine(outputPath, "SimpleMvc.Views.pdb")).Should().NotExist();
3232
}
3333

34-
[Fact(Skip = "Skipping until https://github.com/dotnet/aspnetcore/issues/28825 is resolved.")]
34+
[Fact]
3535
public void RazorGenerateDesignTime_ReturnsRazorGenerateWithTargetPath()
3636
{
3737
var testAsset = "RazorSimpleMvc";

test/Microsoft.NET.ToolPack.Tests/GivenThatWeWantToPackAToolProjectWithGeneratePackageOnBuild.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void It_builds_and_result_contains_dependencies_dll()
7171
}
7272
}
7373

74-
[Theory(Skip = "https://github.com/dotnet/sdk/issues/3471")]
74+
[Theory(Skip = "https://github.com/dotnet/sdk/issues/10335")]
7575
[InlineData(false, false)]
7676
[InlineData(false, true)]
7777
[InlineData(true, false)]

test/Microsoft.TemplateEngine.Cli.UnitTests/ParserTests/TabCompletionTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public void CanCompleteParameters_StartsWith_FromMultipleTemplates()
342342
}
343343

344344
#pragma warning disable xUnit1004 // Test methods should not be skipped
345-
[Fact(Skip = "https://github.com/dotnet/templating/issues/4192")]
345+
[Fact(Skip = "https://github.com/dotnet/templating/issues/4387")]
346346
#pragma warning restore xUnit1004 // Test methods should not be skipped
347347
public void CanCompleteParameters_StartsWith_AfterOption()
348348
{

test/dotnet-format.Tests/tests/Utilities/TestProjectsPathHelper.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ public static string GetProjectsDirectory()
1010
{
1111
if (s_projectsDirectory == null)
1212
{
13-
var assetsDirectory = Path.Combine(TestContext.Current.TestAssetsDirectory, "dotnet-format.TestsProjects");
13+
var assetsDirectory = Path.Combine(TestContext.Current.TestAssetsDirectory, "dotnet-format");
1414
if (Directory.Exists(assetsDirectory))
1515
{
1616
s_projectsDirectory = assetsDirectory;
1717
return assetsDirectory;
1818
}
1919

20-
throw new ArgumentException("Can't find the project asserts directory");
20+
throw new ArgumentException("Can't find the project assets directory");
2121
}
2222

2323
return s_projectsDirectory;

test/dotnet-sln.Tests/GivenDotnetSlnAdd.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ public void WhenPassedAnUnknownProjectTypeItFails()
990990
.WithWorkingDirectory(projectDirectory)
991991
.Execute($"sln", "App.sln", "add", projectToAdd);
992992
cmd.Should().Fail();
993-
cmd.StdErr.Should().BeVisuallyEquivalentTo("Unsupported project type. Check with your sdk provider.");
993+
cmd.StdErr.Should().BeVisuallyEquivalentTo("has an unknown project type and cannot be added to the solution file. Contact your SDK provider for support.");
994994

995995
File.ReadAllText(slnFullPath)
996996
.Should().BeVisuallyEquivalentTo(contentBefore);

test/dotnet-test.Tests/GivenDotnetTestBuildsAndRunsTestfromCsproj.cs

-24
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, Skip = "https://github.com/dotnet/sdk/issues/22865")]
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)