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

Improve Mocking debugging #128

Merged
merged 7 commits into from
Jul 23, 2024
Merged

Improve Mocking debugging #128

merged 7 commits into from
Jul 23, 2024

Conversation

omus
Copy link
Member

@omus omus commented Jul 16, 2024

When doing some debugging with ScopedValues support I found the PatchEnv debug flag was now inadequate as running a task declared before the apply scope results in no debugging information for that @mock call site. I've instead overhauled the intercepted logging messages for Mocking to be debug messages that are displayed independently from the patch environment. This does result in way more logging messages but overall I think this is more useful.

Additionally, I've added in details as to which @mock call site was intercepted by displaying the location of the call site and it's containing module.

As this is a breaking change I'll include this in the upcoming 0.8 release.

Copy link

codecov bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.33%. Comparing base (6d351d4) to head (599af55).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #128      +/-   ##
==========================================
+ Coverage   87.41%   93.33%   +5.92%     
==========================================
  Files           6        7       +1     
  Lines         143      165      +22     
==========================================
+ Hits          125      154      +29     
+ Misses         18       11       -7     

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

@omus omus merged commit 8395981 into main Jul 23, 2024
9 checks passed
@omus omus deleted the cv/debug-overhaul branch July 23, 2024 14:58
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.

1 participant