Skip to content

Show test markers top-level, not only at place where is clause is present #1945

@defalut

Description

@defalut

If helper functions (not macros) are used, test markers are shown only at the place where clojure.test/is is present. Like this:

selection_052

With more complicated (or nested) helper functions, usualy placed in different namespaces, this becomes problematic to track what exactly has failed as markers are scattered over many files. This is what I want:

selection_054

Tried to hack it on my own, but was not able to come up with satisfying solution (I cannot redef clojure.test/do-report to my own version as it is already somewhat hacked by closed-source Cursive).

I understand that to define marker tooltips for multiple underlying failures is harder. Do we want to report every failure that happened inside function in tooltip at function call location? Or report just first failure tooltip? But apart from tooltips, this is pretty easy to be defined: Mark every line in stacktrace from is to deftest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions