Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency NUnit.Analyzers to v4.3.0 #695

Merged
merged 1 commit into from
Aug 10, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 9, 2024

Mend Renovate

This PR contains the following updates:

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

Release Notes

nunit/nunit.analyzers (NUnit.Analyzers)

v4.3.0: NUnit Analyzers 4.3 - August 9, 2024

Compare Source

NUnit Analyzers 4.3 - August 9, 2024

This release of the NUnit Analyzers contains some bug fixes to existing analyzers and code fixes - among other
improvements to trivia when using the code fix of NUnit2049.

For new features we now warn against using TestContext.Write as this will be obsolete in NUnit at some point;
NUnit1001 now recognises and check generic TestCase attributes; and we have added a new analyzer and code fix for
simplifying usages of ValuesAttribute.

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

Issues Resolved

Features and Enhancements

  • #​770 Add rule to detect calls to TestContext.Write methods and CodeFix to replace usages with Out.Write
  • #​767 Augment NUnit1001 to recognized and check generic TestCase attributes
  • #​755 New diagnostic: The Values attribute can be simplified.

Bugs

  • #​766 Error when TearDown method is defined in partial test classes - Syntax node is not within syntax tree
  • #​743 NUnit1032 (missing Dispose), if dispose is wrapped in "(… as IDisposable)?.Dispose()"
  • #​739 Null suppression does not work when Assert is fully qualified
  • #​713 Code fix for NUnit2049 places the comma at a wrong place and messes up indentation bug

Tooling, Process, and Documentation

  • #​764 Update the solution file
  • #​761 Update nunit.analyzers.nuspec to specify that NUnit.Analyzers v4 is intended to be used with NUnit 4.
  • #​756 error NUnit1032 is incorrect when InstancePerTestCase and constructor is used to initialize IDisposible
  • #​741 chore(deps): Bump Microsoft.NET.Test.Sdk from 17.9.0 to 17.10.0 in /src
  • #​737 Update NUnit2013.md to fix code block
  • #​736 chore: bump version
  • #​734 Why dropping composite message formatting support also for Assert.Pass/Fail/... where there are no actual and constraint parameters?

Configuration

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

🚦 Automerge: Enabled.

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 enabled auto-merge (rebase) August 9, 2024 15:57
Copy link

github-actions bot commented Aug 9, 2024

🎳 Stryker Report

Mutation testing badge

📊 Reports

Copy link

sonarcloud bot commented Aug 9, 2024

Copy link

codecov bot commented Aug 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (62f5567) to head (3148709).
Report is 98 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #695   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines          220       220           
  Branches        24        24           
=========================================
  Hits           220       220           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Aug 9, 2024

🏅 Benchmark test report

Expand to see results 🔽

BenchmarkDotNet v0.14.0, Ubuntu 22.04.4 LTS (Jammy Jellyfish)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 8.0.303
  [Host]     : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2
  DefaultJob : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2


Method Mean Error StdDev Rank
Moq.GetMock 735.3 ns 4.34 ns 4.06 ns 1
FakeItEasy.GetMock 776.6 ns 5.10 ns 4.52 ns 2
NSubstitute.GetMock 811.3 ns 4.61 ns 4.31 ns 3

BenchmarkDotNet v0.14.0, Ubuntu 22.04.4 LTS (Jammy Jellyfish)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 8.0.303
  [Host]     : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2
  DefaultJob : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2


Method Mean Error StdDev Rank
Moq.StaticResolveSut 1.044 μs 0.0091 μs 0.0076 μs 1
NSubstitute.StaticResolveSut 1.053 μs 0.0085 μs 0.0075 μs 1
FakeItEasy.StaticResolveSut 1.083 μs 0.0067 μs 0.0062 μs 1

BenchmarkDotNet v0.14.0, Ubuntu 22.04.4 LTS (Jammy Jellyfish)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 8.0.303
  [Host]     : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2
  DefaultJob : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2


Method Mean Error StdDev Rank
NSubstitute.ResolveSut 1.022 μs 0.0076 μs 0.0067 μs 1
Moq.ResolveSut 1.046 μs 0.0039 μs 0.0033 μs 1
FakeItEasy.ResolveSut 1.070 μs 0.0069 μs 0.0064 μs 1

BenchmarkDotNet v0.14.0, Ubuntu 22.04.4 LTS (Jammy Jellyfish)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 8.0.303
  [Host]     : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2
  DefaultJob : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2


Method Mean Error StdDev Rank
Moq.NonPublicTypes.GetMock 744.7 ns 6.67 ns 5.91 ns 1
NSubstitute.NonPublicTypes.GetMock 875.7 ns 5.32 ns 4.98 ns 2
FakeItEasy.NonPublicTypes.GetMock 899.4 ns 3.99 ns 3.74 ns 2

BenchmarkDotNet v0.14.0, Ubuntu 22.04.4 LTS (Jammy Jellyfish)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 8.0.303
  [Host]   : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2
  ShortRun : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2

Job=ShortRun  IterationCount=3  LaunchCount=1  
WarmupCount=3  

Method Mean Error StdDev Rank Gen0 Gen1 Gen2 Allocated
NSubstitute.NonPublicTypes.CreateContainer 2.156 s 1.1812 s 0.0647 s 1 76000.0000 71000.0000 68000.0000 2.02 GB
FakeItEasy.NonPublicTypes.CreateContainer 2.194 s 1.0691 s 0.0586 s 1 73000.0000 68000.0000 65000.0000 2.02 GB
Moq.NonPublicTypes.CreateContainer 2.558 s 0.1977 s 0.0108 s 1 77000.0000 70000.0000 67000.0000 2.14 GB

BenchmarkDotNet v0.14.0, Ubuntu 22.04.4 LTS (Jammy Jellyfish)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 8.0.303
  [Host]     : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2
  DefaultJob : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2


Method Mean Error StdDev Rank
Moq.ResolveFrom 1.117 μs 0.0039 μs 0.0032 μs 1
NSubstitute.ResolveFrom 1.126 μs 0.0039 μs 0.0031 μs 1
FakeItEasy.ResolveFrom 1.199 μs 0.0115 μs 0.0107 μs 2

BenchmarkDotNet v0.14.0, Ubuntu 22.04.4 LTS (Jammy Jellyfish)
AMD EPYC 7763, 1 CPU, 4 logical and 2 physical cores
.NET SDK 8.0.303
  [Host]   : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2
  ShortRun : .NET 8.0.7 (8.0.724.31311), X64 RyuJIT AVX2

Job=ShortRun  IterationCount=3  LaunchCount=1  
WarmupCount=3  

Method Mean Error StdDev Rank Gen0 Gen1 Gen2 Allocated
NSubstitute.CreateContainer 418.9 ms 2,634.3 ms 144.4 ms 1 5000.0000 3000.0000 2000.0000 273.44 MB
FakeItEasy.CreateContainer 450.8 ms 2,463.4 ms 135.0 ms 1 5000.0000 3000.0000 2000.0000 273.43 MB
Moq.CreateContainer 479.3 ms 2,492.1 ms 136.6 ms 1 5000.0000 3000.0000 2000.0000 280.46 MB

auto-merge was automatically disabled August 10, 2024 19:46

Base branch requires signed commits

@iamdmitrij iamdmitrij merged commit 74c1611 into main Aug 10, 2024
20 checks passed
@iamdmitrij iamdmitrij deleted the renovate/nunit.analyzers-4.x branch August 10, 2024 19:46
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