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

xUnit1030 should not trigger inside lambda #177

Merged

Conversation

MartyIX
Copy link
Contributor

@MartyIX MartyIX commented Jan 2, 2024

In my project, I was forced to turn off the xUnit1030 analyzer because it does not take into account scenarios like the one in the test case. I figured that a PR is the easiest way to demonstrate my issue.

However, I'm not entirely sure if the xUnit1030 analyzer is wrong here, or if I'm wrong and the test sample is incorrect.

Could you comment on it @bradwilson, please?

@bradwilson
Copy link
Member

Looks like the same kind of bug as xunit/xunit#2856.

@bradwilson bradwilson changed the title xUnit1030: Nested task xUnit1030 should not trigger inside lambda Jan 2, 2024
@bradwilson bradwilson marked this pull request as ready for review January 2, 2024 19:11
@bradwilson bradwilson merged commit 62a2325 into xunit:main Jan 2, 2024
5 checks passed
@bradwilson
Copy link
Member

Available in 1.9.0-pre.10 https://xunit.net/docs/using-ci-builds

@MartyIX MartyIX deleted the feature/2023-01-02-xUnit1030-and-nested-task branch January 2, 2024 19:48
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.

2 participants