mutest: improved traceback printing#100
Open
liambrady wants to merge 1 commit into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #100 +/- ##
==========================================
+ Coverage 60.48% 60.61% +0.12%
==========================================
Files 19 19
Lines 5988 5974 -14
==========================================
- Hits 3622 3621 -1
+ Misses 2366 2353 -13 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
liambrady
force-pushed
the
liambrady/mutest_print_exception
branch
2 times, most recently
from
July 10, 2026 18:28
c508db7 to
048559b
Compare
choppsv1
reviewed
Jul 20, 2026
| self.oplogf("include: restored info path: %s", old_path) | ||
|
|
||
| if do_cli: | ||
| raise CLIOnErrorError() |
Collaborator
There was a problem hiding this comment.
So how is the CLI on error handled since this is being removed?
Contributor
Author
There was a problem hiding this comment.
it is re-raised on line 706
Improves the reporting of tracebacks that originate from user-written scripts. Includes printing the top-level mutest file and a traceback explicitely scoped to only the failing script file. Error paths manually tested: * generic exception in main mutest file * generic exception in include()'ed file * generic exception in nested include()'ed file * generic exception in main mutest file after multiple include()'s * generic exception in external library code * invalid mutest API usage exception in external library code * CLIOnErrorError exception (should not be printed)
liambrady
force-pushed
the
liambrady/mutest_print_exception
branch
from
July 22, 2026 13:04
048559b to
e6c7444
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improves the reporting of tracebacks that originate from user-written scripts. Includes printing the top-level mutest file and a traceback explicitely scoped to only the failing script file.
(Example) Before:
After: