Skip to content

Conversation

@fiotti
Copy link
Contributor

@fiotti fiotti commented May 7, 2025

Implements support for the TimeProvider (closes #911).

Copy link
Owner

@martincostello martincostello left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

Could you add a test like this one that validates the use of the user-specified TimeProvider?

Let me know what difficulties you're having building things, and I can see if there's anything I need to fix, otherwise I should be able to give some pointers.

@martincostello martincostello added the enhancement New feature or request label May 7, 2025
@fiotti
Copy link
Contributor Author

fiotti commented May 8, 2025

Let me know what difficulties you're having building things, and I can see if there's anything I need to fix, otherwise I should be able to give some pointers.

I managed to get everything running properly and I should be able to do everything on my own now, but something urgent came up, I might need a few days before I can get back on this PR. Thank you, Martin 🙏

@fiotti fiotti marked this pull request as ready for review May 12, 2025 13:11
@codecov
Copy link

codecov bot commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.59%. Comparing base (ddb9211) to head (c47590e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #912      +/-   ##
==========================================
+ Coverage   98.57%   98.59%   +0.01%     
==========================================
  Files          16       16              
  Lines         281      284       +3     
  Branches       36       37       +1     
==========================================
+ Hits          277      280       +3     
  Misses          2        2              
  Partials        2        2              
Flag Coverage Δ
linux 98.59% <100.00%> (+0.01%) ⬆️
macos 97.88% <100.00%> (-0.69%) ⬇️
windows 98.59% <100.00%> (+0.01%) ⬆️

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 added this to the v0.6.0 milestone May 21, 2025
@martincostello
Copy link
Owner

Thanks for persevering with this PR. I'll look to get a new release out with this change either today or later this week.

@martincostello martincostello merged commit d6a3fe7 into martincostello:main May 21, 2025
14 checks passed
@fiotti
Copy link
Contributor Author

fiotti commented May 21, 2025

Since working on a PR like this was kind of a new experience for me, thank you very much for your patience and kindness.

@costellobot
Copy link
Collaborator

Thanks for your contribution @fiotti - the changes from this pull request have been published as part of version 0.6.0 📦, which is now available from NuGet.org 🚀

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.

[Feature request]: TimeProvider

3 participants