-
Notifications
You must be signed in to change notification settings - Fork 269
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
Skipped tests count as not run #3243
Conversation
@@ -15,7 +15,6 @@ internal static class TestNodePropertiesCategories | |||
public static Type[] WellKnownTestNodeTestRunOutcomeProperties { get; } = | |||
[ | |||
typeof(PassedTestNodeStateProperty), | |||
typeof(SkippedTestNodeStateProperty), |
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 could break some extension I suppose, is it needed?
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.
Type is internal
so it should be fine. Also, yes the array is used directly to count test that run. As we said, skipped should not be considered as run.
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.
It's internal but used around by built-in extensions too, I would take a look around before and in case duplicate it
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.
Not used anywhere else in this repo (all OSS extensions: https://github.com/search?q=repo%3Amicrosoft%2Ftestfx%20WellKnownTestNodeTestRunOutcomeProperties%20&type=code) but indeed retry is impacted
# Conflicts: # test/UnitTests/Microsoft.Testing.Platform.UnitTests/Program.cs
Update the logic to consider skipped tests as not run:
Fixes #3216