Skip to content

Conversation

@thomhurst
Copy link
Contributor

No description provided.

@martynas-m
Copy link

any estimates when this can be merged? currently we're stuck with quite old TUnit version, since updating breaks tests?

Copilot AI review requested due to automatic review settings December 8, 2025 21:33
@thomhurst
Copy link
Contributor Author

@martynas-m Need someone who maintains this repository 🤷‍♂️ It seems very inactive

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Snapshooter.TUnit integration to be compatible with TUnit version 1.5.6, upgrading from version 0.10.6. The changes adapt to breaking API changes in TUnit's TestContext structure and remove obsolete namespace imports.

  • Upgrades all TUnit package dependencies from 0.10.6 to 1.5.6
  • Adapts TestContext API usage to the new structure with Metadata property
  • Removes unused namespace import that no longer exists in the new TUnit version
  • Adds LangVersion specification for consistency

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
test/Snapshooter.TUnit.Tests/TUnitAssertTests.cs Removes obsolete TUnit.Assertions.AssertConditions.Throws namespace import that no longer exists in TUnit 1.5.6
test/Snapshooter.TUnit.Tests/Snapshooter.TUnit.Tests.csproj Updates TUnit package reference from version 0.10.6 to 1.5.6
src/Snapshooter.TUnit/TUnitSnapshotFullNameReader.cs Migrates TestContext API calls to use new Metadata.TestDetails structure, updating property paths for ClassType.Name, TestName, and TestMethodArguments
src/Snapshooter.TUnit/Snapshooter.TUnit.csproj Updates TUnit.Assertions and TUnit.Core package references to version 1.5.6, and adds LangVersion>latest</LangVersion> property for consistency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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