Skip to content
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

Add calleeType / conditionMemberNames to ActiveIssueAttribute #5376

Merged
merged 2 commits into from
Apr 30, 2020

Conversation

steveisok
Copy link
Member

@steveisok steveisok commented Apr 29, 2020

This adds the same type invoking mechanism that exists in ConditionalClass, Theory, and Fact. Allows ActiveIssue to be a bit more expressive when skipping:

[ActiveIssue("https://github.com/...", typeof(PlatformDetection), nameof(PlatformDetection.IsMonoInterpreter))]

This adds the same type invoking mechanism that exists in ConditionalClass, Theroy, and Fact.  Allows
ActiveIssue to be a bit more exprssing when skipping.
@steveisok steveisok requested a review from akoeplinger April 29, 2020 19:27
Copy link
Member

@akoeplinger akoeplinger left a comment

Choose a reason for hiding this comment

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

A few nits, looks good otherwise.

@akoeplinger akoeplinger changed the title Add calleeType / conditionMemeberNames to ActiveIssueAttribute Add calleeType / conditionMemberNames to ActiveIssueAttribute Apr 30, 2020
@akoeplinger akoeplinger merged commit de4f691 into dotnet:master Apr 30, 2020
@ViktorHofer
Copy link
Member

@safern I just saw this, please take a look at the change.

@safern
Copy link
Member

safern commented Apr 30, 2020

I'm not convinced if we should use Conditional logic for this... it is powerful as it is more customizable... but should we instead add features that we want ActiveIssue to be skipped for? Just like we did in SkipOnCoreClr attribute?

@steveisok
Copy link
Member Author

I think it should fall in the same bucket as Conditional where PlatformDetection is used / expanded upon in dotnet/runtime.

akoeplinger added a commit that referenced this pull request Jul 3, 2020
In #5376 the logic was copied from the ConditionalFactDiscoverer but this is wrong.
For ActiveIssue we want to _skip_ the test if the condition is true, rather than the other way round.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants