Upgrade to TUnit 1.21.6 with async data sources and .NET 10#6
Open
thomhurst wants to merge 2 commits intoAutoFixture:masterfrom
Open
Upgrade to TUnit 1.21.6 with async data sources and .NET 10#6thomhurst wants to merge 2 commits intoAutoFixture:masterfrom
thomhurst wants to merge 2 commits intoAutoFixture:masterfrom
Conversation
- Upgrade TUnit.Core from 0.16.56 to 1.21.6 - Change IDataSource.GetData to return IAsyncEnumerable<Func<Task<object?[]?>>> matching TUnit's new async data source contract - Implement IDataSourceAttribute directly on BaseDataSourceAttribute instead of extending the now-removed NonTypedDataSourceGeneratorAttribute - Add net10.0 target framework for both library and tests - Add PolySharp for netstandard2.0 polyfill support (ModuleInitializerAttribute) - Add ToAsyncDataSource() extension to consolidate sync-to-async wrapping - Configure global.json for .NET 10 SDK and Microsoft.Testing.Platform runner - Update test project for TUnit 1.21.6 API changes (renamed types, namespaces)
- Update Microsoft.SourceLink.GitHub to 10.0.201 in Common.props - Update Microsoft.Testing.Extensions.CodeCoverage to 18.5.2, Microsoft.Testing.Extensions.TrxReport to 2.1.0, and coverlet.collector to 8.0.1 in Common.Test.props - Remove Microsoft.NET.Test.Sdk from Common.Test.props (incompatible with TUnit's Microsoft.Testing.Platform) - Remove all PackageReference Update/Remove overrides from individual csproj files
Contributor
Author
|
@aivascu When you get a chance please |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
IDataSource.GetDatanow returnsIAsyncEnumerable<Func<Task<object?[]?>>>matching TUnit's new async contract — async all the way down, no sync-over-async bridgesBaseDataSourceAttributenow extendsAttributedirectly and implementsIDataSourceAttribute+IDataSource, replacing the removedNonTypedDataSourceGeneratorAttributeModuleInitializerAttributepolyfill on netstandard2.0ToAsyncDataSource()extension to consolidate the repeated sync→async wrapping patternTest plan