Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ public sealed class HangDumpOutputTests : AcceptanceTestBase<HangDumpOutputTests
{
[DataRow("Mini")]
[TestMethod]
[OSCondition(ConditionMode.Exclude, OperatingSystems.OSX, IgnoreMessage = "Investigate failures on macos")]
public async Task HangDump_Outputs_HangingTests_EvenWhenHangingTestsHaveTheSameDisplayName(string format)
{
// This test makes sure that when tests have the same display name (e.g. like Test1 from both Class1 and Class2)
Expand Down Expand Up @@ -51,7 +50,7 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.
<PropertyGroup>
<TargetFrameworks>$TargetFrameworks$</TargetFrameworks>
<OutputType>Exe</OutputType>
<UseAppHost>true</UseAppHost>
<UseAppHost Condition="$([MSBuild]::IsOSPlatform('OSX'))">false</UseAppHost>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ public sealed class HangDumpTests : AcceptanceTestBase<HangDumpTests.TestAssetFi
{
[DynamicData(nameof(TargetFrameworks.AllForDynamicData), typeof(TargetFrameworks))]
[TestMethod]
[OSCondition(ConditionMode.Exclude, OperatingSystems.OSX, IgnoreMessage = "Investigate failures on macos")]
public async Task HangDump_DefaultSetting_CreateDump(string tfm)
{
string resultDirectory = Path.Combine(AssetFixture.TargetAssetPath, Guid.NewGuid().ToString("N"), tfm);
Expand All @@ -27,7 +26,6 @@ public async Task HangDump_DefaultSetting_CreateDump(string tfm)
}

[TestMethod]
[OSCondition(ConditionMode.Exclude, OperatingSystems.OSX, IgnoreMessage = "Investigate failures on macos")]
public async Task HangDump_WithDotnetTest_CreateDump()
{
string resultDirectory = Path.Combine(AssetFixture.TargetAssetPath, Guid.NewGuid().ToString("N"), TargetFrameworks.NetCurrent);
Expand All @@ -51,7 +49,6 @@ public async Task HangDump_WithDotnetTest_CreateDump()
}

[TestMethod]
[OSCondition(ConditionMode.Exclude, OperatingSystems.OSX, IgnoreMessage = "Investigate failures on macos")]
public async Task HangDump_CustomFileName_CreateDump()
{
string resultDirectory = Path.Combine(AssetFixture.TargetAssetPath, Guid.NewGuid().ToString("N"), TargetFrameworks.NetCurrent);
Expand All @@ -69,7 +66,6 @@ public async Task HangDump_CustomFileName_CreateDump()
}

[TestMethod]
[OSCondition(ConditionMode.Exclude, OperatingSystems.OSX, IgnoreMessage = "Investigate failures on macos")]
public async Task HangDump_PathWithSpaces_CreateDump()
{
string resultDir = Path.Combine(AssetFixture.TargetAssetPath, Guid.NewGuid().ToString("N"), TargetFrameworks.NetCurrent);
Expand All @@ -94,7 +90,6 @@ public async Task HangDump_PathWithSpaces_CreateDump()
[DataRow("Triage")]
[DataRow("Full")]
[TestMethod]
[OSCondition(ConditionMode.Exclude, OperatingSystems.OSX, IgnoreMessage = "Investigate failures on macos")]
public async Task HangDump_Formats_CreateDump(string format)
{
string resultDirectory = Path.Combine(AssetFixture.TargetAssetPath, Guid.NewGuid().ToString("N"), format);
Expand Down Expand Up @@ -153,7 +148,7 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.
<PropertyGroup>
<TargetFrameworks>$TargetFrameworks$</TargetFrameworks>
<OutputType>Exe</OutputType>
<UseAppHost>true</UseAppHost>
<UseAppHost Condition="$([MSBuild]::IsOSPlatform('OSX'))">false</UseAppHost>
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ public async Task RetryFailedTests_MaxTestsCount_Succeeds(string tfm, bool fail)
[TestMethod]
// We use crash dump, not supported in NetFramework at the moment
[DynamicData(nameof(TargetFrameworks.NetForDynamicData), typeof(TargetFrameworks))]
[OSCondition(ConditionMode.Exclude, OperatingSystems.OSX)]
public async Task RetryFailedTests_MoveFiles_Succeeds(string tfm)
// TODO: Crash dump is not working properly on macos, so we skip the test for now
=> await RetryHelper.RetryAsync(
async () =>
{
Expand Down Expand Up @@ -229,7 +227,7 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputType>Exe</OutputType>
<UseAppHost>true</UseAppHost>
<UseAppHost Condition="$([MSBuild]::IsOSPlatform('OSX'))">false</UseAppHost>
<LangVersion>preview</LangVersion>
<GenerateTestingPlatformEntryPoint>false</GenerateTestingPlatformEntryPoint>
<TestingPlatformCaptureOutput>false</TestingPlatformCaptureOutput>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public async Task Trx_WhenReportTrxIsSpecified_TrxReportIsGeneratedInDefaultLoca

[DynamicData(nameof(TargetFrameworks.NetForDynamicData), typeof(TargetFrameworks))]
[TestMethod]
[OSCondition(ConditionMode.Exclude, OperatingSystems.OSX, IgnoreMessage = "Investigate failures on macos")]
public async Task Trx_WhenTestHostCrash_ErrorIsDisplayedInsideTheTrx(string tfm)
{
string fileName = Guid.NewGuid().ToString("N");
Expand Down Expand Up @@ -220,7 +219,7 @@ public sealed class TestAssetFixture() : TestAssetFixtureBase(AcceptanceFixture.
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<OutputType>Exe</OutputType>
<UseAppHost>true</UseAppHost>
<UseAppHost Condition="$([MSBuild]::IsOSPlatform('OSX'))">false</UseAppHost>
<LangVersion>preview</LangVersion>
</PropertyGroup>
<ItemGroup>
Expand Down
Loading