-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Introduce Polly.Testing
package
#1394
Conversation
namespace Polly.Testing; | ||
|
||
/// <summary> | ||
/// This class provides additional information about <see cref="ResilienceStrategy"/>. |
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.
/// This class provides additional information about <see cref="ResilienceStrategy"/>. | |
/// This class provides additional information about a <see cref="ResilienceStrategy"/>. |
@martintmk Could you please modify your assertions to include a sample how to check for the |
Codecov Report
@@ Coverage Diff @@
## main #1394 +/- ##
==========================================
+ Coverage 83.73% 83.79% +0.06%
==========================================
Files 270 273 +3
Lines 6449 6475 +26
Branches 1006 1010 +4
==========================================
+ Hits 5400 5426 +26
Misses 840 840
Partials 209 209
Flags with carried forward coverage won't be shown. Click here to find out more.
|
I think this is lightweight enough to be useful to people - I don't think I'd use it myself personally, but this doesn't look like it would add much maintenance burden. One thought that occurs to me: should be call this Testing or maybe it's more like Diagnostics or Introspection? Was just thinking to myself that someone could possible have a diagnostics endpoint in their application where they might want to check the configured pipeline at runtime - in that case having to have a dependency on a package called |
It also shows people that we care about the testing and have native support for it.
I am just following the other naming convention such as
If there is use-case for this in the future we can emit built-in telemetry without exposing any new API. |
Unfortunate thing is that |
I'll use this package to simplify tests such as these: |
Details on the issue fix or feature implementation
Contributes to #1367
With this relatively small package the consumer of Polly can assert the composition of resilience strategies with ease:
cc @PeterCsalaHbo
Confirm the following