Skip to content

Test result / diff not showing  #2123

@d-t-w

Description

@d-t-w

Clojure: 1.10

Cursive:
Built on: 2019-02-20 14:17
Built from: 1.8.1-eap3-5-g1263cdf

Project is a mixture of clj, cljs, cljc, not sure if that matters.

This regression is very recent (I only noticed it last night when I rebooted Intellij after a few days, and also noticed Cursive uses nRepl now).

When the expected / result in a test is over a certain size there is no marker shown for test result, and no diff available in the case of failed tests. Finally, some output is written to the REPL, e.g.

Testing operativ.ui.chart.data-test
0000 41] [1547004420000 48] [1547004480000 40] [1547004540000 45] [1547004600000 49] [1547004660000 45] [1547004720000 48]], :linkedTo \":previous\", :name \"p99\", :type \"spline\", :zIndex 3}]} (data/range [[1547004300000 0 65 23 38 49] [1547004360000 4 53 22 36 41] [1547004420000 10 80 22 26 48] [1547004480000 1 82 22 24 40] [1547004540000 8 47 23 35 45] [1547004600000 3 63 22 34 49] [1547004660000 2 48 21 24 45] [1547004720000 1 67 23 34 48]] true))", :message nil}1547004480000 1987]], \"broker-4\" [[1547004300000 1386] [1547004360000 1347] [1547004420000 1343] [1547004480000 1363]]}))", :message nil}
Ran 2 tests containing 9 assertions.

There is no prn statement anywhere in the code, that is coming from the test runner.

Screenshots follow of four cases, each case is the editor pane post-test run (and other tests in the same ns showing marker / diff as expected):

  1. Test passes, output muted

image

  1. Test fails, output muted

image

  1. Test passes, output fine (all I have done is reduce the size of both expected and result)

image

  1. Test fails, output fine (same as [3] but failing test)

image

Test follows:

  (is (= {:min    1343
          :max    2892
          :mean   (/ (+ 1698 1697 1656 1692 2869 2858 2869 2892 2003 2040 2027 1987 1386 1347 1343 1363) 16)
          :final  7934
          :series [{:name "broker-1" :data [[1547004300000 1698] [1547004360000 1697] [1547004420000 1656] [1547004480000 1692]]}
                   {:name "broker-2" :data [[1547004300000 2869] [1547004360000 2858] [1547004420000 2869] [1547004480000 2892]]}
                   {:name "broker-3" :data [[1547004300000 2003] [1547004360000 2040] [1547004420000 2027] [1547004480000 1987]]}
                   {:name "broker-4" :data [[1547004300000 1386] [1547004360000 1347] [1547004420000 1343] [1547004480000 1363]]}]}
         {:min    1343
          :max    2892
          :mean   (/ (+ 1698 1697 1656 1692 2869 2858 2869 2892 2003 2040 2027 1987 1386 1347 1343 1363) 16)
          :final  7934
          :series [{:name "broker-1" :data [[1547004300000 1698] [1547004360000 1697] [1547004420000 1656] [1547004480000 1692]]}
                   {:name "broker-2" :data [[1547004300000 2869] [1547004360000 2858] [1547004420000 2869] [1547004480000 2892]]}
                   {:name "broker-3" :data [[1547004300000 2003] [1547004360000 2040] [1547004420000 2027] [1547004480000 1987]]}
                   {:name "broker-4" :data [[1547004300000 1386] [1547004360000 1347] [1547004420000 1343] [1547004480000 1363]]}]})))

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugMarks issues describing bugsreleasedMarks issues which have had the fixes released in a stable build

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions