Skip to content

Conversation

@david-acker
Copy link
Member

Allow non-NetFramework tests to be skipped on Mono

Updates the FrameworkSkipConditionAttribute to allow for non-NetFramework tests to be skipped with Mono runtime.

Fixes #48688

@ghost ghost added needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically community-contribution Indicates that the PR has been added by a community member labels Jun 16, 2023
@ghost
Copy link

ghost commented Jun 16, 2023

Thanks for your PR, @david-acker. Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@danmoseley
Copy link
Member

just curious, any particular reason this exists rather than reusing the ones in the shared toolset --
https://github.com/dotnet/arcade/tree/792c346a52b2388152c2fad6f626b88ed8736d6f/src/Microsoft.DotNet.XUnitExtensions/src/Attributes

eg [SkipOnMonoAttribute] [PlatformSpecific(TestPlatforms.Windows | TestPlatforms.OSX)]

@david-acker
Copy link
Member Author

david-acker commented Jun 17, 2023

Interesting... I'm not sure personally. It looks like FrameworkSkipConditionAttribute slightly predates SkipOnMonoAttribute though, based on the commit history.

@wtgodbe Do you know of any reasons why we aren't using the attributes from the shared toolset?

@david-acker david-acker added area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework and removed needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically labels Jun 17, 2023
@ghost
Copy link

ghost commented Jun 17, 2023

Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at.

@wtgodbe
Copy link
Member

wtgodbe commented Jun 20, 2023

@wtgodbe Do you know of any reasons why we aren't using the attributes from the shared toolset?

No strong reason, we created our own xunit attributes a long time ago and never bothered migrating to the shared ones when they got rolled out. It's something we'd do if we had more resources, but isn't urgent enough to be prioritized right now.

@wtgodbe wtgodbe merged commit 4f1e7fb into dotnet:main Jun 20, 2023
@ghost ghost added this to the 8.0-preview6 milestone Jun 20, 2023
@david-acker david-acker deleted the skip-mono-non-framework-tests branch June 20, 2023 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not able to skip aspnetcore testcases with Mono runtime

4 participants