Skip to content

Bump NUnit and NUnit3TestAdapter - #149

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/testing-55b4c50b30
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/testing-55b4c50b30

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Updated NUnit from 4.6.1 to 5.0.0.

Release notes

Sourced from NUnit's releases.

5.0.0

See release notes for details.

Commits viewable in compare view.

Updated NUnit3TestAdapter from 6.2.0 to 6.3.1.

Release notes

Sourced from NUnit3TestAdapter's releases.

6.3.1

This is a hotfix release for issue 1504

6.3.0

See Release notes

Commits viewable in compare view.

@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Oct 12, 2026
jas88 added a commit that referenced this pull request Oct 14, 2026
## Summary

Verify 33.x (pulled in by #149) adds a SponsorCheck build gate that
fails the build (SC021) unless a sponsorship/licence MSBuild property is
declared. Verify was only used by the 14 source generator snapshot
tests, so this replaces it with a small in-house helper and drops the
dependency.

- Add `GeneratorSnapshot`, which compares each generated source against
the existing `{Class}.{Test}#{HintName}.verified.cs` files (unchanged),
writes `.received.cs` on mismatch, flags stale snapshots, and fails on
generator diagnostics or exceptions
- Exclude `*.verified.cs` / `*.received.cs` from compilation in both
test projects (previously done by Verify's MSBuild targets)
- Remove `Verify.NUnit` / `Verify.SourceGenerators` and the `Verify*`
Dependabot group pattern
- Fix `NativeCodecsTests.Initialize_WithEnableOptions_SetsProperties`:
enable options are applied before the native library is probed, so the
library-unavailable branch asserted the wrong values (only reproducible
where the native library is absent)

## Testing

- Solution builds with 0 warnings / 0 errors
- Full test suite passes on net10.0 locally
- Confirmed a deliberately altered snapshot fails with a clear message
and writes a `.received.cs` file

After this merges, #149 only needs the NUnit 5 API fixes.

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Verify 33.x adds a SponsorCheck build gate that fails the build unless a
sponsorship MSBuild property is declared. Verify was only used for the
14 source generator snapshot tests, so this replaces it with a small
in-house helper and drops the dependency.

- Adds `GeneratorSnapshot`, which compares each generated source against
the existing `{Class}.{Test}#{HintName}.verified.cs` files, writes
`.received.cs` on mismatch, flags stale snapshots, and fails on
generator diagnostics or exceptions.
- Excludes `*.verified.cs` and `*.received.cs` from compilation in both
test projects (previously handled by Verify's MSBuild targets).
- Removes `Verify.NUnit`, `Verify.SourceGenerators`, and the `Verify*`
Dependabot pattern.
- Fixes `NativeCodecsTests.Initialize_WithEnableOptions_SetsProperties`:
enable options are applied before the native library is probed, so the
library-unavailable branch was asserting the wrong values.
- Maps CI-recorded `/ _/` source paths back to the repository root,
measured via a `RepositoryRoot` assembly metadata item, so snapshot
files resolve in deterministic builds.

<sup>Written for commit fac71e3.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/jas88/SharpDicom/pull/150?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/jas88/SharpDicom/150?returnTo=https%3A%2F%2Fgithub.com%2Fjas88%2FSharpDicom%2Fpull%2F150&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->
@dependabot dependabot Bot changed the title Bump the testing group with 3 updates Bump NUnit and NUnit3TestAdapter Oct 19, 2026
@dependabot
dependabot Bot force-pushed the dependabot/nuget/testing-55b4c50b30 branch from 71ee7f9 to cb873a3 Compare October 19, 2026 01:28
@jas88

jas88 commented Oct 20, 2026

Copy link
Copy Markdown
Owner

@dependabot rebase

Bumps NUnit from 4.6.1 to 5.0.0
Bumps NUnit3TestAdapter from 6.2.0 to 6.3.1

---
updated-dependencies:
- dependency-name: NUnit
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: testing
- dependency-name: NUnit3TestAdapter
  dependency-version: 6.3.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: testing
- dependency-name: Verify.NUnit
  dependency-version: 33.3.3
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: testing
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/nuget/testing-55b4c50b30 branch from cb873a3 to 5c7ad41 Compare October 20, 2026 17:01
@jas88

jas88 commented Oct 20, 2026

Copy link
Copy Markdown
Owner

Superseded by #151, which includes the test fixes required for NUnit 5.

@jas88 jas88 closed this Oct 20, 2026
@dependabot @github

dependabot Bot commented on behalf of github Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

This pull request was built based on a group rule. Closing it will not ignore any of these versions in future pull requests.

To ignore these dependencies, configure ignore rules in dependabot.yml

@dependabot
dependabot Bot deleted the dependabot/nuget/testing-55b4c50b30 branch October 20, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant