nrepl

sirwobin 2025-05-23T14:02:34.204179Z

Hello folks. I have a question for the cider-nrepl folks related to unit test exclusion. I have defined some tests with a meta-data keyword which I would like to exclude some of the time and I would appreciate some guidance with the nrepl integration. The tests look like (deftest ^:integration blahtest... and I suspect that a refinement to the var-query sent by the editor to the nrepl integration will do the trick but I'm a bit lost for where to look next. The editor sends the following message

{
  op: 'test-var-query',
  id: '72',
  session: 'e250fad4-81b3-4a05-8c4c-b771e0fb9fb7',
  'var-query': { 'test?': true }
}

sirwobin 2025-05-23T14:02:50.109849Z

How should the var-query change to exclude tests with the integration meta-data?

dominicm 2025-06-02T02:04:23.636779Z

https://github.com/clojure-emacs/orchard/blob/master/src/orchard/query.clj Docs here. Exclude-meta-key is what you're after.