Is there a way to decorate a Selenium test in C# so that the test will not appear, and will not be executed in Test Explorer? Without commenting the entire test case
Asked
Active
Viewed 49 times
0
-
What testing framework are you using? XUnit, MSTest, NUnit? – gunr2171 Feb 17 '21 at 18:55
-
Selenium and XUnit – user2370664 Feb 17 '21 at 18:58
-
1Yes, it's `[Ignore]` https://xunit.net/docs/comparisons – gunr2171 Feb 17 '21 at 19:00
-
[Ignore] still shows the test in test explorer with a triangle exclamation point – user2370664 Feb 17 '21 at 19:02
-
Is that a big deal? The only way to have a test not show in Test Explorer is to make it _not a test_, such as removing _all_ the attributes. Ignore just says "yes it's a test, just don't run it". – gunr2171 Feb 17 '21 at 19:03