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

Backtraces print byte code instead of original expression for byte compiled tests #222

Open
snogge opened this issue Aug 10, 2022 · 1 comment

Comments

@snogge
Copy link
Collaborator

snogge commented Aug 10, 2022

First reported in #218 (comment) .

For expect forms like

(expect (+ 1 2) :to-equal 2)

both (+ 1 2) and 2 are stored in non-expanded form so they can be printed in the report in case the test fails. The trick used to do this does not work for byte compiled tests.

Two solutions that might work are

  • use more trickery in expect and save the original expression in the docstrings of the lambda functions.
  • stop using trickery in expect and use proper objects/structs instead.
@alphapapa
Copy link
Contributor

I'd vote for solution 2, but I can't offer to help implement it, so... :)

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

No branches or pull requests

2 participants