clojure-emacs / cider

The Clojure Interactive Development Environment that Rocks for Emacs
https://cider.mx
GNU General Public License v3.0
3.52k stars 642 forks source link

Fringe indicators for sucessful/failed tests #3721

Open vemv opened 4 days ago

vemv commented 4 days ago

Context

When working with tests frequently, one can forget if a given test failed, succeeded, or if it was run at all.

We have tech for 'fringe' indicators, i.e. these white things:

image

Proposal

After running tests, any deftest top-level forms that were run get a green/red fringe indicator.

Notes

Sample code to get started:

(cider--make-fringe-overlays-for-region (point) (save-excursion (end-of-buffer) (point)))

This introduces fringes of the 'cider-fringe-indicator type. We should introduce new types instead e.g. cider-successful-test-fringe-indicator.

vemv commented 4 days ago

Simply jotting down something I could implement some other day (but the feature is also up for grabs)