kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
svt 2020-08-18T04:01:44.091800Z

Hi. I’m adding configuration (tests.edn) for my project and i want to set focus based on meta on namespace

(ns ^:integration my-project.integration-tests.backend.some-test
  (:require [clojure.test :refer :all]))
How do I specify it in my tests.edn ??

svt 2020-08-18T04:20:16.093900Z

I tried adding :focus-meta but it’s only running a single file not all with the meta

plexus 2020-08-18T07:27:46.096800Z

Can you elaborate what you're trying to achieve? To split integration and unit tests you should put them in two separate directories and define two test suites with separate test-paths. Metadata is not the right tool to achieve this.

svt 2020-08-18T12:52:31.097500Z

I want to run all the tests where namespace has some specific meta with

svt 2020-08-18T12:55:26.098200Z

Ok. what I’m trying to achieve is not separation of unit and integration test but I just want to run test files having specific ns meta for example ns ^foo

plexus 2020-08-18T14:06:21.099200Z

--focus-meta : integration That should work on the command line.

svt 2020-08-18T14:16:09.101700Z

@plexus yes it's working for one file which has this meta. But I have multiple files which has this meta and I want to run all those file which contains this na meta

plexus 2020-08-18T14:25:17.102700Z

That should work. If it doesn't then it's a bug. Would you mind making an issue on GitHub?

plexus 2020-08-18T14:27:22.104Z

A small demo project that reproduces the issue would be ideal, that would really help me to speed up the time to fix it

svt 2020-08-18T14:27:45.104300Z

Yes sure I'll do that