Skip to content

Conversation

@paulomorgado
Copy link
Contributor

@paulomorgado paulomorgado commented Feb 26, 2025

Added sections on Dependency Injection and Standalone Logging Components. Introduced CalculatorTests to demonstrate logging setup for unit tests using XUnitLoggerProvider. Enhanced Calculator class to log the sum of two integers. Retained links to additional testing examples.

Closes #856

Added sections on Dependency Injection and Standalone Logging Components. Introduced `CalculatorTests` to demonstrate logging setup for unit tests using XUnitLoggerProvider. Enhanced `Calculator` class to log the sum of two integers. Retained links to additional testing examples.
@martincostello martincostello added the enhancement New feature or request label Feb 26, 2025
Fix markdownlint complaints.
@martincostello martincostello enabled auto-merge (squash) February 26, 2025 08:55
@martincostello
Copy link
Owner

Thanks for the contribution!

@codecov
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.53%. Comparing base (d811139) to head (ffc73c8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #861   +/-   ##
=======================================
  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% <ø> (ø)
macos 97.80% <ø> (-0.74%) ⬇️
windows 98.53% <ø> (ø)

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.

@martincostello martincostello merged commit 37ebed8 into martincostello:main Feb 26, 2025
12 checks passed
@paulomorgado paulomorgado deleted the docs branch February 26, 2025 09:51
peggy-quartech added a commit to bcgov/PSSG-SPDBT that referenced this pull request Aug 27, 2025
Updated
[MartinCostello.Logging.XUnit](https://github.com/martincostello/xunit-logging)
from 0.5.1 to 0.6.0.

<details>
<summary>Release notes</summary>

_Sourced from [MartinCostello.Logging.XUnit's
releases](https://github.com/martincostello/xunit-logging/releases)._

## 0.6.0

## What's Changed

* Refactor build workflow by @​martincostello in
martincostello/xunit-logging#838
* Use lint-actions-powershell by @​martincostello in
martincostello/xunit-logging#843
* Add annotations for pwsh lint by @​martincostello in
martincostello/xunit-logging#844
* Update README with logging and DI examples by @​paulomorgado in
martincostello/xunit-logging#861
* Use BuildKit by @​martincostello in
martincostello/xunit-logging#870
* Add Public API analyzers by @​martincostello in
martincostello/xunit-logging#874
* Add test analytics by @​martincostello in
martincostello/xunit-logging#901
* Add output examples by @​martincostello in
martincostello/xunit-logging#917
* Add TimeProvider by @​fiotti in
martincostello/xunit-logging#912

## New Contributors

* @​paulomorgado made their first contribution in
martincostello/xunit-logging#861
* @​fiotti made their first contribution in
martincostello/xunit-logging#912

**Full Changelog**:
martincostello/xunit-logging@v0.5.1...v0.6.0


Commits viewable in [compare
view](martincostello/xunit-logging@v0.5.1...v0.6.0).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=MartinCostello.Logging.XUnit&package-manager=nuget&previous-version=0.5.1&new-version=0.6.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Peggy <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider adding a XUnitLogger<T>

2 participants