Skip to content

Harden Auto* data sources for TUnit 1.66 and add generic attributes - #7

Merged
aivascu merged 5 commits into
AutoFixture:masterfrom
aivascu:fix/tunit-data-source-hardening
Sep 7, 2026
Merged

Harden Auto* data sources for TUnit 1.66 and add generic attributes#7
aivascu merged 5 commits into
AutoFixture:masterfrom
aivascu:fix/tunit-data-source-hardening

Conversation

@aivascu

@aivascu aivascu commented Sep 6, 2026

Copy link
Copy Markdown
Member

Summary

Upgrade TUnit and harden Auto* data sources so member/class/method/field/property rows behave more reliably, including class-level (constructor) data. Add generic Auto* attributes, refresh docs and brand assets, and modernize CI/tooling.

Fixes

  • Upgrade TUnit to 1.66.8 and align Auto* sources with the current async data-source model
  • Share row conversion (ToAsyncDataRows) across member, class, method, field, and property sources
  • Guard null and excess-length data rows instead of failing in unclear ways
  • Match class-level ClassParameters to the constructor TUnit actually uses (DataGeneratorMetadataExtensions)
  • Pin net48 test builds to AnyCPU so the Framework SDK does not default to win-x86

Features

  • Generic attributes (C# 11+): [AutoClassDataSource<T>], [AutoMemberDataSource<T>], [AutoArguments<T>]
  • Document supported member/class data-source result shapes in the README
  • Broader public-API coverage for shapes, class-level scenarios, and generic usage
  • NuGet/IDE package readme under assets/readme.md, plus CONTRIBUTING notes and AutoFixture brand assets

Tooling

  • Harden Nuke/CI for net8.0 / net10.0, simplify analyzer setup for tests
  • Bump GitHub Actions to checkout@v7, setup-dotnet@v6, cache@v6, and upload-artifact@v7
  • Prefer collection expressions where the target type is clear

@aivascu
aivascu force-pushed the fix/tunit-data-source-hardening branch from 832388f to 4cfdcbd Compare September 7, 2026 11:17
@aivascu
aivascu force-pushed the fix/tunit-data-source-hardening branch from 4cfdcbd to 7cfdde3 Compare September 7, 2026 11:29
@aivascu
aivascu merged commit 51a9ff7 into AutoFixture:master Sep 7, 2026
2 checks passed
@aivascu
aivascu deleted the fix/tunit-data-source-hardening branch September 7, 2026 12:06
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.

1 participant