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

Support xunit v3 #804

Merged
merged 11 commits into from
Dec 20, 2024
Merged

Support xunit v3 #804

merged 11 commits into from
Dec 20, 2024

Conversation

martincostello
Copy link
Owner

@martincostello martincostello commented Dec 19, 2024

  • Add support for xunit v3 via the new MartinCostello.Logging.XUnit.v3 NuGet package.
  • Bump version to 0.5.0.
  • Add package icon.

Resolves #717

TODO

- Add support for xunit v3 via the new MartinCostello.Logging.XUnit.v3 NuGet package.
- Bump version to 0.5.0.
@martincostello martincostello added enhancement New feature or request dependencies Pull requests that update a dependency file .NET Pull requests that update .net code labels Dec 19, 2024
@martincostello martincostello mentioned this pull request Dec 19, 2024

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.

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

Attention: Patch coverage is 98.50746% with 4 lines in your changes missing coverage. Please review.

Project coverage is 98.53%. Comparing base (8eae44c) to head (3b77e4d).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/Shared/XUnitLogger.cs 98.07% 2 Missing ⚠️
src/Shared/XUnitLogScope.cs 93.33% 0 Missing and 1 partial ⚠️
src/Shared/XUnitLogger.IMessageSink.cs 85.71% 0 Missing and 1 partial ⚠️
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           
Flag Coverage Δ
linux 98.53% <98.50%> (+0.73%) ⬆️
macos 98.53% <98.50%> (+0.73%) ⬆️
windows 98.53% <98.50%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

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.
src/Shared/XUnitLogger.cs Dismissed Show dismissed Hide dismissed
src/Shared/XUnitLogger.cs Dismissed Show dismissed Hide dismissed
src/Shared/XUnitLoggerProvider.cs Dismissed Show dismissed Hide dismissed
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.
Copy link

@github-advanced-security github-advanced-security bot left a 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.
tests/Shared/XUnitLoggerExtensionsTests.cs Dismissed Show dismissed Hide dismissed
tests/Shared/XUnitLoggerExtensionsTests.cs Dismissed Show dismissed Hide dismissed
tests/Shared/XUnitLoggerExtensionsTests.cs Dismissed Show dismissed Hide dismissed
tests/Shared/XUnitLoggerExtensionsTests.cs Dismissed Show dismissed Hide dismissed
tests/Shared/XUnitLoggerExtensionsTests.cs Dismissed Show dismissed Hide dismissed
tests/Shared/XUnitLoggerExtensionsTests.cs Dismissed Show dismissed Hide dismissed
tests/Shared/XUnitLoggerExtensionsTests.cs Dismissed Show dismissed Hide dismissed
tests/Shared/XUnitLoggerExtensionsTests.cs Dismissed Show dismissed Hide dismissed
Update README for new package.
Add a package icon (xunit's own logo).

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
@martincostello martincostello marked this pull request as ready for review December 20, 2024 10:01
@martincostello martincostello merged commit e39e9bf into main Dec 20, 2024
11 of 12 checks passed
@martincostello martincostello deleted the support-xunit-v3 branch December 20, 2024 10:02
@martincostello martincostello added this to the v0.5.0 milestone Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request .NET Pull requests that update .net code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support xunit v3
1 participant