Today, we're shipping three new releases:
It's been 2 months since the release of 1.2.0 RTM.
This update includes three new analyzers, an update to an existing analyzer (to better support extensibility authors), and a new fixer.
As always, we'd like to thank all the users who contributed to the success of xUnit.net through usage, feedback, and code contributions. 🎉
These release notes are a comprehensive list of changes from 1.2.0 to 1.3.0.
[Fact]
or
[Theory]
. Since third party libraries may allow other returned types, they will no longer
trigger this warning. (Third party extensions which provide their own analyzers should consider having
a similar rule if you change the valid return types for test methods, including the case where you
provide FactAttribute
overrides but still have the same return type limitations.)
xunit/xunit#2749
[Fact]
or [Theory]
attribute from the local function.
ConfigureAwait
on tasks as being problematic. Calling this on a task
inside a test method will cause the remainder of the test method to be run on a thread pool thread
rather than the original thread (which is used to limit the number of tests that run concurrently
in parallel).
xunit/xunit#2628
Task.GetAwaiter().GetResult()
Task.Wait()
Task.WaitAll()
Task.WaitAny()
Task.GetAwaiter().GetResult()
Task.Result
ValueTask.GetAwaiter().GetResult()
ValueTask.GetAwaiter.GetResult()
ValueTask.Result