-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support xunit v3 #804
Support xunit v3 #804
Conversation
- Add support for xunit v3 via the new MartinCostello.Logging.XUnit.v3 NuGet package. - Bump version to 0.5.0.
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.
Copilot reviewed 29 out of 29 changed files in this pull request and generated no comments.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #804 +/- ##
=======================================
Coverage 98.53% 98.53%
=======================================
Files 15 15
Lines 273 273
Branches 36 36
=======================================
Hits 269 269
Misses 2 2
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Ignore xunit.v3 updates for libraries used by the library.
Use `xunit.v3.extensibility.core` instead of `xunit.v3.common` and `xunit.v3.core` to resolve issues with the build.
Update the pinned xunit v3 packages.
Move all of the C# for the libraries into a Shared folder and link to each project from there.
Move properties back to Directory.Build.props.
Move all the code for the tests to a Shared folder for re-use.
The package will be released as 0.5.0, so validate against that.
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.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
Refactor to make CodeQL happy.
Update README for new package.
Add a package icon (xunit's own logo).
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.
Copilot reviewed 31 out of 45 changed files in this pull request and generated no comments.
Files not reviewed (14)
- Directory.Build.props: Language not supported
- Directory.Packages.props: Language not supported
- Logging.XUnit.sln: Language not supported
- build.ps1: Language not supported
- src/Logging.XUnit.v3/MartinCostello.Logging.XUnit.v3.csproj: Language not supported
- src/Logging.XUnit/CompatibilitySuppressions.xml: Language not supported
- src/Logging.XUnit/MartinCostello.Logging.XUnit.csproj: Language not supported
- src/Shared/ITestOutputHelperAccessor.cs: Evaluated as low risk
- src/Shared/ITestOutputHelperExtensions.cs: Evaluated as low risk
- src/Shared/MessageSinkAccessor.cs: Evaluated as low risk
- src/Shared/StringSyntaxAttribute.cs: Evaluated as low risk
- src/Shared/TestOutputHelperAccessor.cs: Evaluated as low risk
- src/Shared/XUnitLogger.IMessageSink.cs: Evaluated as low risk
- src/Shared/IMessageSinkExtensions.cs: Evaluated as low risk
Resolves #717
TODO
Resolve TODOs aroundSelfRegisteredExtensions
(see warning CS0436: The type ‘SelfRegisteredExtensions’ causes a conflict xunit/xunit#3036)Verify that the new library is indeed a library not an executable (see Library extending xunit v3 appears to be a test project - how to disable? xunit/xunit#3093)Update READMEEnsure that new package is included in NuGet publishing