Fork me on GitHub
#kaocha
<
2020-08-18
>
svt04:08:44

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 ??

svt04:08:16

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

plexus07:08:46

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.

svt12:08:26

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

svt12:08:31

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

plexus14:08:21

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

svt14:08:09

@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

plexus14:08:17

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

plexus14:08:22

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

svt14:08:45

Yes sure I'll do that