-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup PlatformSpecific/SkipOnMono attributes that skip a platform #50907
Conversation
Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer Issue DetailsWe have a bunch of test assemblies that don't make sense on some platforms, e.g. Browser. Using the more generic SkipOnPlatform attribute can be used instead.
|
@@ -68,6 +68,21 @@ This attribute returns the 'failing' category, which is disabled by default. | |||
``` | |||
Use this attribute over test methods to skip failing tests only on the specific platforms and the specific target frameworks. | |||
|
|||
#### SkipOnPlatformAttribute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the docs 🎉
Should we also update eng/Version.Details.xml so that darc knows which version we depend on? What about assemblies using |
#50901 was just merged so I can take that out again now.
What about them? The |
Right, but what I meant was, do we have any IgnoreForCI that we should add an attribute to the assembly so that locally they don't run? |
@safern thanks, I see what you mean now. I checked and we don't have any cases like that, but I found a few of the reverse case where we'd have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have any docs
EDIT: I accidentally included this comment 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. Thank you
We have a bunch of test assemblies that don't make sense on some platforms, e.g. Browser.
Right now we're skipping them via
[SkipOnMono("reason", TestPlatforms.Browser)]
but there's nothing that inherently ties this to Mono other than the current implementation.The more generic
SkipOnPlatform
attribute can be used instead.We can also use it in places where we do
[PlatformSpecific(~TestPlatforms....)]
to avoid the double inversion.