NUnit Analyzers 3.8 (and 2.8) - September 25, 2023
This release contains a fix to the WithinUsageAnalyzer and handling of false duplicates when
combining NUnit1032 - An IDisposable field/property should be Disposed in a TearDown method -
with LifeCycle.InstancePerTestCase.
The release contains contributions from the following users (in alphabetical order):
NUnit Analyzers 3.8 (and 2.8) - September 25, 2023
This release contains a fix to the WithinUsageAnalyzer and handling of false duplicates when
combining NUnit1032 - An IDisposable field/property should be Disposed in a TearDown method -
with LifeCycle.InstancePerTestCase.
The release contains contributions from the following users (in alphabetical order):
andrewimcclement
fredjeronimo
HenryZhang-ZHY
manfred-brands
mikkelbu
Issues Resolved
Features and Enhancements
#595 NUnit1032 false positive in LifeCycle.InstancePerTestCase test fixture using constructor
Bugs
#596 WithinUsageAnalyzer threw an exception of type 'System.IndexOutOfRangeException'
Tooling, Process, and Documentation
#598 Update NUnit1032.md to fix typo Dipose -> Dispose.
NUnit Analyzers 3.7 (and 2.7) - September 16, 2023
This release contains a lot of improvements and corrections to the supression of non-nullable fields and properties
that are assigned in setup methods (and not in constructors). We have also added suppression of:
CA1812 - Avoid uninstantiated internal classes - on test classes
CA1001 - Types that own disposable fields should be disposable - when disposed is called in TearDown methods
The release also contain some improvements to the performance of the analyzers by avoid repeated calls to
GetTypeByMetadataName. Also ValuesAttribute is now also handled by the analyzer in a similar manner as TestCaseAttribute.
Most of the work done in this release have either been driven by or made by manfred-brands.
The release contains contributions from the following users (in alphabetical order):
333fred
Corniel
andrewimcclement
IlIlIllIllI
jhinder
MaceWindu
manfred-brands
mikkelbu
RenderMichael
SeanKilleen
stevenaw
Issues Resolved
... (truncated)
Commits
767ae3a Merge pull request #600 from nunit/release3.8
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps NUnit.Analyzers from 3.7.0 to 3.8.0.
Release notes
Sourced from NUnit.Analyzers's releases.
Changelog
Sourced from NUnit.Analyzers's changelog.
... (truncated)
Commits
767ae3a
Merge pull request #600 from nunit/release3.8d2ddcaa
chore: Update release notesf6e3687
Merge pull request #599 from manfred-brands/issue595_InstancePer2145034
Do not raise NUnit1032 if Fixture uses LifeCycle.InstancePerTestCasec6175b3
Do not suppress CA1001 if Fixture uses LifeCycle.InstancePerTestCase3a43fae
Merge pull request #598 from andrewimcclement/patch-1db138ef
Update NUnit1032.md to fix typoDipose
->Dispose
.9b7f547
Merge pull request #597 from HenryZhang-ZHY/issue/59673f5711
fix: IndexOutOfRangeException threw by WithinUsageAnalyzer596df34
Merge pull request #591 from nunit/chore/bump-versionDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show