-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Pick up a new build of Xunit #60044
Pick up a new build of Xunit #60044
Conversation
Also pick up latest pre-release of analyzers
Xunit added a new Assert overload that caused a lot of ambiguous calls. xunit/xunit#2393 Workaround by casting to double.
This diagnostic forces the use of Assert.ThrowsAsync for any async method, however in our case we may want to test that a method will throw synchronously to avoid regressing that behavior by moving to the async portion of the method.
Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer Issue DetailsThis is the latest pre-release of Xunit 2.x. It contains updated asserts library and manually updated to the latest analyzers. The analyzers found some new issues with our tests, which I have fixed. There are a few issues I worked around. xunit/xunit#2393 Reviewable commit-by-commit.
|
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.
LGTM
Looks like there was a breaking change in Will need to see if we can workaround this or not. |
I would appreciate a second opinion on disabling xUnit2014 and my justification:
I know we were very careful about this in the past, particularly with parameter validation. I considered making a new method like |
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.
LGTM. Reminds me of when we had to do this back when v2 was actively developed.
Latest round of failures appear to be due to re-enumeration of an IEnumerable in assert library. Need to track down that regression. |
Ok, that's this issue: xunit/xunit#2402 Not seeing an easy workaround at the moment. I'll see if we can make a fix to xunit. |
Closing this for now, Will need to merge a fix and pick up a new build to proceed. |
This is the latest pre-release of Xunit 2.x. It contains updated asserts library and manually updated to the latest analyzers.
The analyzers found some new issues with our tests, which I have fixed. There are a few issues I worked around.
xunit/xunit#2393
xunit/xunit#2394
xunit/xunit#2395
Reviewable commit-by-commit.