-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Testing] Remove IgnoreIfPlatforms usage on UITests #22526
Conversation
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/CarouselViewUITests.LoopNoFreeze.cs
Outdated
Show resolved
Hide resolved
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/CarouselViewUITests.LoopNoFreeze.cs
Outdated
Show resolved
Hide resolved
@@ -16,10 +16,9 @@ public CarouselViewNoItemTemplate(TestDevice device) | |||
// Issue12777 (src\ControlGallery\src\Issues.Shared\Issue12777.cs | |||
[Test] | |||
[Category(UITestCategories.CarouselView)] | |||
[FailsOnWindows] |
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.
Should we change these attributes to require a description? Not that this is something that you're doing right now, but imo people should add a description as to why they're adding this.
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.
I've been thinking about it and if we are going to ignore tests for some reason, it makes sense to add a brief description indicating why.
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.
Applied changes, the ignore reason is now mandatory.
@@ -1,4 +1,5 @@ | |||
using NUnit.Framework; | |||
#if ANDROID |
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.
For this one (and other #if statements) should we consider not adding this? Ideally tests run for all platforms unless there is something REALLY specific which I don't think should be a lot of tests. What if we just enable them, will they run fine on other platforms as well and suddenly get a lot of extra tests "for free"?
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.
Maybe if we don't want to fix that right now then let's make sure there is an issue for it to go over these and test that
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.
Agree, but we need to review every case. I mean, there are many cases that just was validating something in one specific platform and the test only have the reference snapshot for that platform. We just need to generate the rest and validate it.
I can do that in this PR if we want, or create another issue an review it there.
@@ -46,10 +46,9 @@ public void KeepItemsInView() | |||
// KeepScrollOffset (src\Compatibility\ControlGallery\src\Issues.Shared\CollectionViewItemsUpdatingScrollMode.cs) | |||
[Test] | |||
[Category(UITestCategories.CollectionView)] | |||
[FailsOnAllPlatforms] |
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.
What is the difference between Ignore that I have seen on other tests and FailsOnAllPlatforms?
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.
Internally, no differences. However, it can cause confusion so I have made changes to always follow the same pattern using FailsOn with a description.
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue16561.cs
Outdated
Show resolved
Hide resolved
} | ||
|
||
#if ANDROID | ||
public class FailsOnAndroid : IgnoreAttribute |
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.
Don't we have this in a different place too? Can we move it to somewhere so it's shared maybe?
Ignored golden tests, ui tests verifying an snapshot with a reference one, on macOS for now
|
Description of Change
Remove IgnoreIfPlatforms usage on UITests. The changes should reduce the time needed to pass UI tests.
Issues Fixed
Fixes #22525