You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we would need to something like the following for our test methods and classes.
if (AppInitializer.GetLocalPlatform() == Platform.Android
|| AppInitializer.GetLocalPlatform() == Platform.iOS))
{
// Do something
}
else if (AppInitializer.GetLocalPlatform() == Platform.Browser)
{
// Do something else
}
Desired behavior
What would be nice and cleaner is some sort of ActivePlatforms attribute for test methods and classes.
So we can mark classes and methods by doing something like:
[ActivePlatforms(Platform.Android, Platform.iOS)]
public void MyTest() { }
Or maybe even an IgnoredPlatforms?
[IgnoredPlatforms(Platform.Browser)]
public void MyTest() { }
The text was updated successfully, but these errors were encountered:
kazo0
changed the title
Create a ActivePlatformsAttribute for test methods/classes
Create a ActivePlatforms/IgnoredPlatforms Attribute for test methods/classes
Feb 14, 2022
I'm submitting a
Feature Request
Current behavior
Currently we would need to something like the following for our test methods and classes.
Desired behavior
What would be nice and cleaner is some sort of
ActivePlatforms
attribute for test methods and classes.So we can mark classes and methods by doing something like:
Or maybe even an IgnoredPlatforms?
The text was updated successfully, but these errors were encountered: