rejeep / ert-runner.el

Opinionated Ert testing workflow
85 stars 19 forks source link

`ert--print-backtrace` has been removed in latest Emacs #49

Closed qhuyduong closed 4 years ago

qhuyduong commented 6 years ago

ert--print-backtrace has been removed with this commit

https://github.com/emacs-mirror/emacs/commit/e09120d68694272ea5efbe13b16936b4382389d8

So ert-runner can't work with latest Emacs. Please help to fix.

Thanks

phst commented 5 years ago

It looks like this should now use backtrace-to-string.

anquegi commented 5 years ago

Until, it will we updated we can use a workaround in test-helper.el, for emacs major-version bigger than 26:

(when (> emacs-major-version 26) (defalias 'ert--print-backtrace 'backtrace-to-string))

bad tests:

learn/emacs/neural-networks-and-chaos took 2s
➜ cask exec ert-runner

Test addition-test backtrace:

Test addition-test condition:

    (ert-test-failed
     ((should
       (=
    (+ 2 1)
    4))
      :form
      (= 3 4)
      :value nil))

F

Ran 1 test in 0.084 seconds
1 unexpected results:
   FAILED  addition-test

Corrected tests:

➜ cask exec ert-runner

.

Ran 1 test in 0.000 seconds
cireu commented 5 years ago

How about now? It's not an important issue but really annoying and confusing.

seagle0128 commented 4 years ago

Any update?