Reenable passed tests with skip attribute set as string

This commit is contained in:
Jason Zhai 2024-06-24 00:58:22 -07:00
Родитель 36aa8f57aa
Коммит a050d731f5
12 изменённых файлов: 46 добавлений и 48 удалений

Просмотреть файл

@ -358,7 +358,7 @@ namespace EndToEnd.Tests
[InlineData("wpflib", "VB")]
[InlineData("wpfcustomcontrollib")]
[InlineData("wpfcustomcontrollib", "C#")]
[InlineData("wpfcustomcontrollib", "VB", Skip = "Skipping since the Generic.xaml it creates from the template fails to compile.")]
[InlineData("wpfcustomcontrollib", "VB")]
[InlineData("wpfusercontrollib")]
[InlineData("wpfusercontrollib", "C#")]
[InlineData("wpfusercontrollib", "VB")]

Просмотреть файл

@ -9,7 +9,7 @@ namespace EndToEnd.Tests
{
public class TelemetryOptOutDefault : TestBase
{
[Fact(Skip = "TODO: This test can only be ran in CI because the local build does not adjust telemetry settings.")]
[Fact]
public void TelemetryOptOutDefaultAttribute()
{
var versionCommand = new DotnetCommand().ExecuteWithCapturedOutput("--version");

Просмотреть файл

@ -18,7 +18,7 @@ namespace Microsoft.DotNet.Configurer.UnitTests
_fileSystemMockBuilder = FileSystemMockBuilder.Create();
}
[Fact(Skip = "Product.Version not set correctly when running tests")]
[Fact]
public void TheSentinelHasTheCurrentVersionInItsName()
{
FirstTimeUseNoticeSentinel.SENTINEL.Should().Contain($"{Product.Version}");

Просмотреть файл

@ -552,7 +552,7 @@ public class EndToEndTests : IDisposable
[DockerSupportsArchInlineData("linux/arm/v7", "linux-arm", "/app")]
[DockerSupportsArchInlineData("linux/arm64/v8", "linux-arm64", "/app")]
[DockerSupportsArchInlineData("linux/386", "linux-x86", "/app", Skip = "There's no apphost for linux-x86 so we can't execute self-contained, and there's no .NET runtime base image for linux-x86 so we can't execute framework-dependent.")]
[DockerSupportsArchInlineData("linux/386", "linux-x86", "/app")]
[DockerSupportsArchInlineData("windows/amd64", "win-x64", "C:\\app")]
[DockerSupportsArchInlineData("linux/amd64", "linux-x64", "/app")]
[DockerAvailableTheory()]

Просмотреть файл

@ -39,7 +39,7 @@ namespace Microsoft.NET.Build.Tests
.HaveStdOutContaining("Hello, World!");
}
[FullMSBuildOnlyFact(Skip = "There is no publish error when using PackageReference support which is required for testing")]
[FullMSBuildOnlyFact]
public void When_not_referenced_by_csharp_project_it_fails_to_publish()
{
var testAsset = _testAssetsManager

Просмотреть файл

@ -9,7 +9,7 @@ namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests
public class BlazorLegacyIntegrationTest60(ITestOutputHelper log)
: IsolatedNuGetPackageFolderAspNetSdkBaselineTest(log, nameof(BlazorLegacyIntegrationTest60))
{
[CoreMSBuildOnlyFact(Skip = "The Runtime pack resolves to 8.0 instead of 9.0")]
[CoreMSBuildOnlyFact]
public void Build60Hosted_Works()
{
// Arrange
@ -37,7 +37,7 @@ namespace Microsoft.NET.Sdk.BlazorWebAssembly.Tests
new FileInfo(Path.Combine(serverBuildOutputDirectory, $"{testAsset}.Shared.dll")).Should().Exist();
}
[CoreMSBuildOnlyFact(Skip = "The Runtime pack resolves to 8.0 instead of 9.0")]
[CoreMSBuildOnlyFact]
public void Publish60Hosted_Works()
{
// Arrange

Просмотреть файл

@ -104,7 +104,7 @@ namespace Microsoft.TemplateEngine.Cli.UnitTests
// The _fooOneTemplate is a non-match because of a framework choice param value mismatch.
// But the _fooTwoTemplate matches because the framework choice is valid for that template.
#pragma warning disable xUnit1004 // Test methods should not be skipped
[Fact(Skip = "Fails due to matching on template options is not implemented.")]
[Fact]
#pragma warning restore xUnit1004 // Test methods should not be skipped
public async Task CacheSearchCliSymbolNameFilterTest()
{
@ -148,7 +148,7 @@ namespace Microsoft.TemplateEngine.Cli.UnitTests
// test that an invalid symbol makes the search be a non-match
#pragma warning disable xUnit1004 // Test methods should not be skipped
[Fact(Skip = "Fails due to matching on template options is not implemented.")]
[Fact]
#pragma warning restore xUnit1004 // Test methods should not be skipped
public async Task CacheSearchCliSymbolNameMismatchFilterTest()
{
@ -444,9 +444,7 @@ namespace Microsoft.TemplateEngine.Cli.UnitTests
}
}
#pragma warning disable xUnit1004 // Test methods should not be skipped
[Fact(Skip = "Not relevant due to matching on template options is not implemented.")]
#pragma warning restore xUnit1004 // Test methods should not be skipped
[Fact]
public async Task CacheSkipInvalidTemplatesTest()
{
string cacheLocation = TestUtils.CreateTemporaryFolder();

Просмотреть файл

@ -14,7 +14,7 @@ namespace Microsoft.DotNet.Tests
{
}
[Fact(Skip = "This coverage needs to be in core-sdk, which is where crossgen is applied")]
[Fact]
public void CLI_SDK_assemblies_must_be_crossgened()
{
// TODO: Update method of finding cliPath (right now it's finding a ref path in stage 0

Просмотреть файл

@ -1,5 +1,5 @@
Microsoft.Azure.WebJobs.ItemTemplates
Package version: 4.0.2738
Package version: 4.0.3038
Details: Collection of templates for Azure Functions
Source Feed: https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json
Authors:
@ -8,30 +8,34 @@
License Url: https://go.microsoft.com/fwlink/?linkid=2028464
Repository Url: https://go.microsoft.com/fwlink/?linkid=848145
Templates:
Template Name Short Name Type Tags Language
----------------------------------- ------------------- ---- ----------------------------------------------------- --------
HttpTrigger http item Azure Function/Trigger/Http C#,F#
QueueTrigger queue item Azure Function/Trigger/Storage Queue C#
HttpTriggerWithOpenAPI httpOpenAPI item Azure Function/Trigger/Http C#
BlobTrigger blob item Azure Function/Trigger/Blob C#,F#
TimerTrigger timer item Azure Function/Trigger/Timer C#,F#
DurableFunctionsOrchestration durable item Azure Function/Durable Functions Orchestration C#
DurableFunctionsEntityOrchestration durableentity item Azure Function/Durable Functions Entity Orchestration C#
SendGrid sendgrid item Azure Function/Ouput/SendGrid C#
EventHubTrigger eventhub item Azure Function/Trigger/EventHub C#,F#
ServiceBusQueueTrigger squeue item Azure Function/Trigger/Service Bus/Queue C#
ServiceBusTopicTrigger stopic item Azure Function/Trigger/Service Bus/Topic C#
EventGridCloudEventTrigger eventgridcloudevent item Azure Function/Trigger/EventGrid/EventGrid CloudEvent C#,F#
EventGridTrigger eventgrid item Azure Function/Trigger/EventGrid C#
IotHubTrigger iothub item Azure Function/Trigger/IotHub C#
CosmosDBTrigger cosmos,CosmosDB item Azure Function/Trigger/Cosmos DB C#,F#
SignalRTrigger signalr item Azure Function/Trigger/Http/SignalR C#
RabbitMQTrigger rqueue item Azure Function/Trigger/RabbitMQ Queue C#
KafkaTrigger kafka item Azure Function/Trigger/Kafka C#
KafkaOutput kafkao item Azure Function/Ouput/Kafka C#
SqlInputBinding sqlinput item Azure Function/Input/SQL C#
SqlOutputBinding sqloutput item Azure Function/Output/SQL C#
SqlTriggerBinding sqltrigger item Azure Function/Trigger/SQL C#
KustoInputBinding kustoinput item Azure Function/Input/Kusto C#
KustoOutputBinding kustooutput item Azure Function/Output/Kusto C#
Template Name Short Name Type Tags Language
----------------------------------- ---------------------------- ---- ----------------------------------------------------- --------
HttpTrigger http item Azure Function/Trigger/Http C#,F#
QueueTrigger queue item Azure Function/Trigger/Storage Queue C#
HttpTriggerWithOpenAPI httpOpenAPI item Azure Function/Trigger/Http C#
BlobTrigger blob item Azure Function/Trigger/Blob C#,F#
TimerTrigger timer item Azure Function/Trigger/Timer C#,F#
DurableFunctionsOrchestration durable item Azure Function/Durable Functions Orchestration C#
DurableFunctionsEntityOrchestration durableentity item Azure Function/Durable Functions Entity Orchestration C#
SendGrid sendgrid item Azure Function/Ouput/SendGrid C#
EventHubTrigger eventhub item Azure Function/Trigger/EventHub C#,F#
ServiceBusQueueTrigger squeue item Azure Function/Trigger/Service Bus/Queue C#
ServiceBusTopicTrigger stopic item Azure Function/Trigger/Service Bus/Topic C#
EventGridCloudEventTrigger eventgridcloudevent item Azure Function/Trigger/EventGrid/EventGrid CloudEvent C#,F#
EventGridTrigger eventgrid item Azure Function/Trigger/EventGrid C#,F#
IotHubTrigger iothub item Azure Function/Trigger/IotHub C#
CosmosDBTrigger cosmos,CosmosDB item Azure Function/Trigger/Cosmos DB C#,F#
SignalRTrigger signalr item Azure Function/Trigger/Http/SignalR C#
RabbitMQTrigger rqueue item Azure Function/Trigger/RabbitMQ Queue C#
KafkaTrigger kafka item Azure Function/Trigger/Kafka C#
KafkaOutput kafkao item Azure Function/Ouput/Kafka C#
SqlInputBinding sqlinput item Azure Function/Input/SQL C#
SqlOutputBinding sqloutput item Azure Function/Output/SQL C#
SqlTriggerBinding sqltrigger item Azure Function/Trigger/SQL C#
KustoInputBinding kustoinput item Azure Function/Input/Kusto C#
KustoOutputBinding kustooutput item Azure Function/Output/Kusto C#
EventGridBlobTrigger eventgridblob item Azure Function/Trigger/Blob C#
DaprServiceInvocationTrigger daprServiceInvocationTrigger item Azure Function/Trigger/Dapr C#
DaprTopicTrigger daprTopicTrigger item Azure Function/Trigger/Dapr C#
DaprPublishOutputBinding daprPublishOutputBinding item Azure Function/Trigger/Dapr C#

Просмотреть файл

@ -1,5 +1,5 @@
Microsoft.Azure.WebJobs.ItemTemplates
Package version: 4.0.2738
Package version: 4.0.3038
Details: Collection of templates for Azure Functions
Source Feed: dotnet-public [https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json]
Authors:

Просмотреть файл

@ -58,9 +58,7 @@ namespace Microsoft.DotNet.Cli.New.IntegrationTests
return Verify(commandResult.StdOut);
}
#pragma warning disable xUnit1004 // Test methods should not be skipped
[Fact(Skip = "Test targeting specific versions")]
#pragma warning restore xUnit1004 // Test methods should not be skipped
[Fact]
public Task CanDisplayDetails_RemotePackage_OtherFeedNoVersion()
{
CommandResult commandResult = new DotnetNewCommand(_log, "details", "Microsoft.Azure.WebJobs.ItemTemplates")
@ -127,9 +125,7 @@ namespace Microsoft.DotNet.Cli.New.IntegrationTests
return Verify(commandResult.StdOut);
}
#pragma warning disable xUnit1004 // Test methods should not be skipped
[Fact(Skip = "Test targeting specific versions")]
#pragma warning restore xUnit1004 // Test methods should not be skipped
[Fact]
public Task CanDisplayDetails_InstalledPackage_OtherFeed()
{
string home = CreateTemporaryFolder(folderName: "Home");

Просмотреть файл

@ -50,7 +50,7 @@ namespace Microsoft.DotNet.Cli.MSBuild.Tests
.Exist();
}
[Fact(Skip = "Test app base folder doesn't have Sdks")]
[Fact]
public void ItSetsMSBuildSDKsPathToExistingPath()
{
var msbuildPath = "<msbuildpath>";