jorgenschaefer / emacs-buttercup

Behavior-Driven Emacs Lisp Testing
GNU General Public License v3.0
360 stars 44 forks source link

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

Open snogge opened 1 year ago

snogge commented 1 year ago

First reported in https://github.com/jorgenschaefer/emacs-buttercup/issues/218#issuecomment-1151695407 .

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

alphapapa commented 1 year ago

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