Skip to content

Conversation

@scomtott
Copy link

Issue #849 and #451

This PR adds the ability to override the WriteMessage method of XUnitLogger by providing a delegate in XUnitLoggerOptions.

The XUnitLogger is passed into the delegate so that it is possible to access properties of the logger such as the log category (XUnitLogger.Name).

Note: I need to wait for approval to contribute to open source from my organisation so please don't merge this yet.

pass XUnitLogger into WriteMethodOverride

add more tests

change formatter name
Copilot AI review requested due to automatic review settings February 19, 2025 11:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

@martincostello martincostello marked this pull request as draft February 19, 2025 11:51
@martincostello
Copy link
Owner

I need to wait for approval to contribute to open source from my organisation so please don't merge this yet.

Let me know when you get the green light, then I'll take a look at the PR properly. I've moved it to draft. I just did a quick skim read for now.

@codecov
Copy link

codecov bot commented Feb 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.59%. Comparing base (4010350) to head (2130ad6).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #850      +/-   ##
==========================================
+ Coverage   98.53%   98.59%   +0.05%     
==========================================
  Files          15       15              
  Lines         273      284      +11     
  Branches       36       39       +3     
==========================================
+ Hits          269      280      +11     
  Misses          2        2              
  Partials        2        2              
Flag Coverage Δ
linux 98.59% <100.00%> (+0.05%) ⬆️
macos 98.59% <100.00%> (+0.78%) ⬆️
windows 98.59% <100.00%> (+0.05%) ⬆️

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.

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.

2 participants