Skip to content

Conversation

@jkoritzinsky
Copy link
Member

Add check to skip tests if all RuntimeTestModes are skipped

Fixes #105964

…runtime test modes

Add check to skip tests if all RuntimeTestModes are skipped

Fixes #105964
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a code-generation failure in XUnitWrapperGenerator when processing SkipOnCoreClrAttribute cases that result in no runtime-configuration/test-mode conditions, preventing invalid generated C# like if ().

Changes:

  • Add a guard in DecorateWithSkipOnCoreClrConfiguration to return an empty test set when no conditions are produced.
  • Avoid emitting ConditionalTest wrappers with an empty condition expression.

Updated skipped test platform and configuration handling to use 'Any' instead of 0 values as the default skip rules (matches the implementation in arcade)
Copilot AI review requested due to automatic review settings January 29, 2026 22:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status
Status: No status

Development

Successfully merging this pull request may close these issues.

[Test] Issue with DecorateWithSkipOnCoreClrConfiguration

2 participants