-
Notifications
You must be signed in to change notification settings - Fork 16
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 Akka.TestKit.NUnit to NUnit v4 (3rd attempt) #136
Conversation
This commit is based on the work of Sean Killeen in PR akkadotnet#112. Additional changes: * add net462 as target framework * set C# version in test projects to C# 10 so that file scoped namespaces work
- This improves consistency between NUnit 3 and 4 adapters
Our adapters are no longer using custom assertions. This will result in failure reports that are consistent with other NUnit reports, especially when the report output changes (like it did between NUnit 3 and 4).
This commit only changes indentation whitespace, making this MSBuild file consistent with other MSBuild files in the repository (.csproj).
Fixes warning NU5048 during "dotnet pack". https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu5048
- Thanks FarrisPandell
@FarrisPandell addressed your feedback, ready for next round. |
Akka.TestKit 1.5.28, Microsoft.NET.Test.Sdk 17.11.1
@Aaronontheweb any feedback for this pull request? I updated the |
@milang @FarrisPandell my apologies - I've had GitHub Notifications turned off for 10 years (unless I get explicitly mentioned), so this is the first I'm seeing this. CI/CD is failing - any idea what that's about? |
Overall the NuGet package structure you've proposed looks good to me |
- Empty lines are confusing Nuke build
Nuke is complaining that "Release Notes should not be empty". I tracked it down to newlines that I added after version headers in I pushed a new commit that removes the empty newlines, hopefully the build will pass now. |
Ugh, yes NUKE is very opinionated about this. Ran into that myself before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
So it's release as v1.6.0-preview1 on NuGet - let me know if that's acceptable |
I'm also fine doing it as v1.5.* package if there's buy-in |
@Aaronontheweb would a release as 1.6.* mean that a corresponding Akka 1.6.* was needed to use the NUnit v4 compatible version of Akka.TestKit.NUnit? |
@milang thanks for getting this across the finish line! Awesome work 🎉 👏 |
Sorry, I didn't realize that the major/minor version was fixed at @Aaronontheweb don't forget to delete the Edit: I see that the |
@Aaronontheweb any chance you could publish Also, I noticed that As per the changes in this PR, the latest build of
to:
|
Fixes #111.
Changes
This PR extends pull request #131 by @UrsMetz, which in turn builds on the work of @SeanKilleen in #112.
Improvements in NUnit TestKit adapters
Akka.TestKit.NUnit
4.2.2
)net6.0
andnet462
, just like NUnit 4Akka.TestKit.NUnit3
3.14.0
)netstandard2.0
, just like NUnit 3net35;net40;net45;netstandard2.0
, but we have to exclude frameworks not supported by[email protected]
ITestKitAssertions.AssertEqual(..., comparer, ...)
now uses NUnit constraint model instead of custom assertion implementation. This makes failure reports more consistent with the rest of NUnit output.Nuke.Common
).Improvements in NuGet packages
PackageIcon
andPackageLicenseExpression
properties, eliminating warnings duringdotnet pack
. Akka icon with dimensions 128x128px is now embedded in.nupkg
file, as recommended by NuGet..pdb
) are now included directly in the.nupkg
files. This only increases the final.nupkg
size by ~20 kB and removes the need to publish separate.snupkg
file to a symbol server. See Microsoft guidance.The following screenshot compares currently published
.nupkg
file (version1.5.24
) with.nupkg
as proposed by this pull request. Please note that the green "source link", "deterministic exe/dll", and "compiler flags" shields typically require the package to be built with the latest .NET SDK (mine was built using .NET SDK 8.0.401). However this repository's GitHub Actions are currently configured to use .NET SDK 6.Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):