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

feat: show detailed stacktrace and debugging info when test runner fails #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wookayin
Copy link
Contributor

Problem:

When the embedded test runner throws an uncaught exception, (e.g.,
within plenary.busted.run() or plenary.busted can't be imported)
no detailed stacktrace information was printed.

Solution:

Catch lua exception within the test runner and print full stacktrace.

@wookayin wookayin marked this pull request as draft September 28, 2023 20:45
@wookayin
Copy link
Contributor Author

This is minor addition to #10 -- in situations like #10 no stacktrace information was available.

Preview:

image

Problem:

When the embedded test runner throws an uncaught exception, (e.g.,
within `plenary.busted.run()` or `plenary.busted` can't be imported)
no detailed stacktrace information was printed.

Solution:

Catch lua exception within the test runner and print full stacktrace.
@wookayin wookayin marked this pull request as ready for review September 28, 2023 20:51
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