You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run a test that uses com.gfredericks.test.chuck.clojure-test/checking using C-c C-t t, and that test throws an exception, then the stack trace should appear in the cider test report.
Actual behavior
The test report includes:
Test Summary
minimal-cider-test-report-failure.core-test
Tested 1 namespaces
Ran 1 assertions, in 1 test functions
1 failures
Results
minimal-cider-test-report-failure.core-test
1 non-passing tests:
Fail in failing-report
failure report gives error in process filter
The exception isn't shown. The following is added to the *Messages* buffer:
Running test failing-report in minimal-cider-test-report-failure.core-test...
minimal-cider-test-report-failure.core-test: Ran 1 assertions, in 1 test functions. 1 failures, 0 errors.
error in process filter: cider-insert: Wrong type argument: stringp, (dict "fail" ((dict)) "failing-size" 0 "num-tests" 1 "result" "clojure.lang.ExceptionInfo: boop {}" "seed" 1536864029083 "shrunk" (dict "depth" 0 "result" "clojure.lang.ExceptionInfo: boop {}" "smallest" ((dict)) "total-nodes-visited" 0))
error in process filter: Wrong type argument: stringp, (dict "fail" ((dict)) "failing-size" 0 "num-tests" 1 "result" "clojure.lang.ExceptionInfo: boop {}" "seed" 1536864029083 "shrunk" (dict "depth" 0 "result" "clojure.lang.ExceptionInfo: boop {}" "smallest" ((dict)) "total-nodes-visited" 0))
Seems we're getting some unexpected response when running this test and this causes the error. That should be easy enough to debug with your excellent report, but I won't have time to work on CIDER for a while. A hint for someone willing to tackle this - instrument cider-insert before running this test and see what happens there.
CIDER expects a message that documents a test to be a string. clojure.test/is seems to accepts vectors and maps as msg as well, so it would be good if CIDER could handle these as well.
I think it would make most sense to transform the :message to a string in cider-nrepl. Otherwise the message is transfered to emacs as an nrepl-dict and then needs to be transformed in CIDER in order to print it in the test results buffer.
CIDER expects a message that documents a test to be a string. clojure.test/is seems to accepts vectors and maps as msg as well, so it would be good if CIDER could handle these as well.
Expected behavior
When I run a test that uses
com.gfredericks.test.chuck.clojure-test/checking
usingC-c C-t t
, and that test throws an exception, then the stack trace should appear in the cider test report.Actual behavior
The test report includes:
The exception isn't shown. The following is added to the
*Messages*
buffer:Steps to reproduce the problem
git clone https://github.com/flyingmachine/cider-test-report-failure.git
C-c C-t t
for the testminimal-cider-test-report-failure.core-test/failing-report
Environment & Version information
CIDER version information
Lein/Boot version
Lein 2.8.1
Emacs version
26.1
Operating system
macOS High Sierra 10.13.6
The text was updated successfully, but these errors were encountered: