Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Nov 13, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
NUnit.Analyzers 4.3.0 -> 4.9.2 age adoption passing confidence

Release Notes

nunit/nunit.analyzers (NUnit.Analyzers)

v4.9.2: NUnit Analyzers 4.9.2 - June 17, 2025

Compare Source

NUnit Analyzers 4.9.2 - June 17, 2025

This release of the NUnit Analyzers extends the NUnit3001 nullability suppressor
to also work in the context of Assert.EnterMultipleScope and other using statements.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Features and Enhancements

  • #​892 Assert.EnterMultipleScope not detecting nullability properly

v4.9.1

Compare Source

This release of the NUnit Analyzers fixes a problem with the code-fix for translating
Assert.Multiple/Assert.MultipleAsync into the new Assert.EnterMultipleScope format
when the test method already is asynchronous and have a return type different from Task.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Bugs

  • #​888 Assert.MultipleAsync -> EnterMultipleScope autofix produce invalid code

v4.9.0: NUnit Analyzers 4.9 - June 11, 2025

Compare Source

NUnit Analyzers 4.9 - June 11, 2025

This release of the NUnit Analyzers adds several new analyzers. For the RangeAttribute,
the analyzers now warn about potential issues at runtime.

It also introduces an analyzer and code fix for translating
Assert.Multiple/Assert.MultipleAsync into the new Assert.EnterMultipleScope format, as well
as for converting is T checks into Is.InstanceOf<T>() constraints.

For NUnit2021, the analyzer now respects UsingPropertiesComparer, including enhancements
that will be available in NUnit 4.4.

Finally, this release includes improvements to NUnit2007, NUnit2045, and NUnit4002.
See the list of resolved issues below for more details.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Features and Enhancements

  • #​880 NUnit2007 could flag typeof() as a constant first parameter
  • #​866 When Assert.Multiple is found, should suggest to convert to Assert.EnterMultipleScope
  • #​865 NUnit 2045 suggest Assert.Multiple, but should suggest Assert.EnterMultipleScope
  • #​857 NUnit2021 Should not raise for UsingPropertiesComparer
  • #​765 Add Rule for converting is T into Is.InstanceOf()
  • #​89 Test the correct usage of the Range attribute

Bugs

  • #​879 NUnit4002 shouldn't trigger for T vs nullable<T> struct types

Tooling, Process, and Documentation

v4.8.1

Compare Source

This release of the NUnit Analyzers fixes a problem with NUnit4002 when applied to comparisons between non-number
types - e.g. strings.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Bugs

  • #​870 Compilation error caused by exception in an analyzer after updating to v4.8.0

v4.8.0: NUnit Analyzers 4.8 - May 22, 2025

Compare Source

NUnit Analyzers 4.8 - May 22, 2025

This release of the NUnit Analyzers adds a new diagnostic NUnit1034 that checks
whether base TestFixtures are declared as abstract. When a base class is not abstract
it will also be run as a standalone test which is most times not the intention.

The release also contains some fixes to NUnit4002 and Nunit2045.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Features and Enhancements

  • #​840 Detect incorrect or questionable use of TestFixture inheritance.

Bugs

  • #​862 NUnit.Analyzers doesn't recognize the version of NUnit in use
  • #​856 NUnit4002 shouldn't trigger for unknown types

Tooling, Process, and Documentation

  • #​861 Add missing backticks in NUnit4002.md
  • #​855 chore: bump version

v4.7.0: NUnit Analyzers 4.7 - April 1, 2025

Compare Source

NUnit Analyzers 4.7 - April 1, 2025

The release primarily add another diagnostic NUnit4002 - and associated codefix - to help simplify
EqualTo constraints when the expected value is a simple constant - e.g. true, false, 0, or
default. The release also removes some false positives for Nunit1029.

As tooling contributions the analyzers now build using .NET8.0 and also analyzers and codefixes are
now split into separate projects as only editors should load codefixes.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Features and Enhancements

  • #​828 Replace Is.EqualTo(default) with Is.Default
  • #​826 Suggest to use Is.Null instead of Is.EqualTo(null)
  • #​824 Use Is.False / Is.True instead of Is.EqualTo

Bugs

  • #​832 False positive for Nunit1029 when only a type argument is use

Tooling, Process, and Documentation

  • #​853 chore: Add NUnit4002.md solution file
  • #​846 chore: Bump NUnit3TestAdapter to version 5
  • #​843 chore(deps): Bump Microsoft.NET.Test.Sdk and Microsoft.NETFramework.ReferenceAssemblies
  • #​838 chore: bump version
  • #​677 Build using .NET8.0 SDK

v4.6.0: NUnit Analyzers 4.6 - January 9, 2025

Compare Source

NUnit Analyzers 4.6 - January 9, 2025

This release contains two improvements: Allowing NUnit1001 to understand DateOnly and TimeOnly parameters in
TestCaseUsage and making NUnit2045 support Assert.EnterMultipleScope (introduced in NUnit version 4.2).

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Features and Enhancements

  • #​820 NUnit1001 compains about DateOnly parameters
  • #​769 Recognized the new Assert.EnterMultipleScope() concept.

Tooling, Process, and Documentation

  • #​829 chore: Bump year to 2025 in copyrights
  • #​823 chore: Bump cake.tool to version 4
  • #​822 chore: Bump NUnit to 4.3.2
  • #​818 chore: Replace "buildstats.info" with "img.shields.io"
  • #​815 chore: bump version

v4.5.0: NUnit Analyzers 4.5 - December 22, 2024

Compare Source

NUnit Analyzers 4.5 - December 22, 2024

The release primarily fixes a problem with the NUnit Analyzers when used with NUnit 4.3.1 - see #​811 for more
information. In additional, we have also added some smaller improvements and bug fixes.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Features and Enhancements

  • #​811 NUnit2021 ignores cast operation since NUnit 4.3.1
  • #​801 Allow NUnit2005 to recognize Is.Empty

Bugs

  • #​794 AD0001: Occasional InvalidOperationException error in analyzer in IDE

Tooling, Process, and Documentation

  • #​808 chore: Correct typo
  • #​806 Add information about dotnet_diagnostic.NUnit1032.additional_dispose_methods to the docs
  • #​795 chore(deps): Bump Microsoft.NET.Test.Sdk from 17.11.1 to 17.12.0
  • #​793 chore: bump version

v4.4.0: NUnit Analyzers 4.4 - November 13, 2024

Compare Source

NUnit Analyzers 4.4 - November 13, 2024

This release of the NUnit Analyzers adds handling of Assert.IsAssignableFrom/Assert.IsNotAssignableFrom and
Assert.Positive/Assert.Negative. Also insertion of trivia for code fixes for NUnit2007 and NUnit2046
have been improved.

The release contains contributions from the following users (in alphabetical order):

Issues Resolved

Features and Enhancements

  • #​790 NUnit.Analyzers 4.3.0 missed an Assert.IsAssignableFrom that caused a build error after upgrading to latest NUnit 4.2.2
  • #​789 NUnit.Analyzers 4.3.0 missed an Assert.Positive that caused a build error after upgrading to latest NUnit 4.2.2

Bugs

  • #​784 Fix trivia for NUnit2046
  • #​783 NUnit2007 doesn't apply trivia correctly

Tooling, Process, and Documentation

  • #​788 chore: Bump NUnit to version 4.2.2
  • #​785 chore(deps): Bump NUnit3TestAdapter from 4.5.0 to 4.6.0
  • #​780 chore(deps): Bump CSharpIsNullAnalyzer from 0.1.495 to 0.1.593
  • #​778 chore(deps): Bump Microsoft.NET.Test.Sdk from 17.10.0 to 17.11.1
  • #​776 chore: bump version
  • #​775 chore: Update release notes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title chore(deps): update dependency nunit.analyzers to 4.4.0 chore(deps): update dependency nunit.analyzers to 4.5.0 Dec 22, 2024
@renovate renovate bot force-pushed the renovate/nunit.analyzers-4.x branch from 6331724 to 55d751a Compare December 22, 2024 16:13
@renovate renovate bot changed the title chore(deps): update dependency nunit.analyzers to 4.5.0 chore(deps): update dependency nunit.analyzers to 4.6.0 Jan 9, 2025
@renovate renovate bot force-pushed the renovate/nunit.analyzers-4.x branch from 55d751a to b63de35 Compare January 9, 2025 21:49
@renovate renovate bot changed the title chore(deps): update dependency nunit.analyzers to 4.6.0 chore(deps): update dependency nunit.analyzers to 4.7.0 Apr 1, 2025
@renovate renovate bot force-pushed the renovate/nunit.analyzers-4.x branch from b63de35 to 5c847c6 Compare April 1, 2025 23:15
@renovate renovate bot force-pushed the renovate/nunit.analyzers-4.x branch from 5c847c6 to 0402f3a Compare May 22, 2025 22:33
@renovate renovate bot changed the title chore(deps): update dependency nunit.analyzers to 4.7.0 chore(deps): update dependency nunit.analyzers to 4.8.0 May 22, 2025
@renovate renovate bot changed the title chore(deps): update dependency nunit.analyzers to 4.8.0 chore(deps): update dependency nunit.analyzers to 4.8.1 May 29, 2025
@renovate renovate bot force-pushed the renovate/nunit.analyzers-4.x branch from 0402f3a to cb43f45 Compare May 29, 2025 11:26
@renovate renovate bot force-pushed the renovate/nunit.analyzers-4.x branch from cb43f45 to 1cd0826 Compare June 12, 2025 00:03
@renovate renovate bot changed the title chore(deps): update dependency nunit.analyzers to 4.8.1 chore(deps): update dependency nunit.analyzers to 4.9.0 Jun 12, 2025
@renovate renovate bot force-pushed the renovate/nunit.analyzers-4.x branch from 1cd0826 to 9457b39 Compare June 13, 2025 01:58
@renovate renovate bot changed the title chore(deps): update dependency nunit.analyzers to 4.9.0 chore(deps): update dependency nunit.analyzers to 4.9.1 Jun 13, 2025
@renovate renovate bot changed the title chore(deps): update dependency nunit.analyzers to 4.9.1 chore(deps): update dependency nunit.analyzers to 4.9.2 Jun 17, 2025
@renovate renovate bot force-pushed the renovate/nunit.analyzers-4.x branch from 9457b39 to 1525ce0 Compare June 17, 2025 16:55
@hazzik hazzik merged commit 89185c2 into main Jul 9, 2025
2 checks passed
@hazzik hazzik deleted the renovate/nunit.analyzers-4.x branch July 9, 2025 07:23
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