cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
vemv 2021-03-24T17:12:35.072900Z

anyone around here actively uses the nubank/matcher-combinators lib? I'd like to know if it breaks your cider's clojure.test integration (of if it's only for me - I use an odd/old cider)

hcarvalhoaves 2021-03-25T21:37:37.076500Z

Hi @vemv, for the false positives, you can check if the code isn't forgetting to assert the match (is (match? ...)) instead of just (match? ...) , I've been bitten by this in the past

vemv 2021-03-25T21:59:58.076700Z

hi, thanks for the response! I tried again just now, no luck sadly

vemv 2021-03-25T22:13:56.076900Z

turns out: * cider has its own report multimethod * cider manually defines a custom defmethod for matcher-combinators: https://github.com/clojure-emacs/cider-nrepl/blob/cd29bd761e58707d438b3373d7512c9e33ded865/src/cider/nrepl/middleware/test.clj#L177-L181 as mentioned in my OP, my cider is older than current. Anyway honestly a few things seem off to me (why use a custom :matcher-combinators/mismatch dispatch value? why cider has to create its own API that doesn't leverage 3rd party clojure.test integrations automatically?)

enn 2021-03-24T17:43:16.073Z

Yes, I do, and the ANSI color codes don’t render correctly. A coworker has a bit of elisp to fix it, let me find it.

vemv 2021-03-24T17:44:03.073200Z

for me the biggest issue is false negatives: tests based on match? report success even if not passing

enn 2021-03-24T17:44:26.073400Z

hmm, I haven’t seen that.

enn 2021-03-24T17:44:55.073600Z

it might be an old cider issue, I’m on recent versions of cider and nrepl

👍 1
vemv 2021-03-24T17:50:46.073900Z

the weird thing is that ultimately matcher-combinators uses clojure.test, so when properly using clojure.test, things should just work :) i.e. CIDER (old and new) is smart enough to integrate with arbitrary frameworks as long as they use clojure.test properly

vemv 2021-03-24T17:50:57.074100Z

appreciate much the confirmation anyway!