kaocha

Colin P. Hill 2023-01-30T15:18:04.894839Z

Anyone ever have an issue where the first run with --watch omits a namespace, while the test plan under the same settings says it should be included, and subsequent runs in the watch loop pick up the namespace? EDIT: Diagnosed, issue filed.

Colin P. Hill 2023-01-30T15:23:08.198009Z

In the first run, com.colinphill.extra-special is omitted, but in the second run, after a whitespace change in another file, it is included. Where :env/dev holds my test dependencies and :run/test just pulls in Kaocha and sets :main-opts ["-m" "kaocha.runner"]:

Colin P. Hill 2023-01-30T15:31:35.382929Z

The test plan with the same options shows the omitted namespace:

> clj -M:env/dev:run/test --watch --print-test-plan | rg --regexp "#'([^\s,]+)" --replace '(var $1)' --passthrough | jet --pretty --edn-reader-opts '{:default tagged-literal}' --query ':kaocha.test-plan/tests (map :kaocha.test-plan/tests) (map (map :kaocha.testable/id))'
((:com.colinphill.extra-special.impl.test
  :com.colinphill.extra-special.impl.ns
  :com.colinphill.extra-special.impl.def
  :com.colinphill.extra-special.impl.test.kaocha
  :com.colinphill.extra-special
  :com.colinphill.extra-special.impl.dialect
  :com.colinphill.extra-special.unicode
  :com.colinphill.extra-special.impl.extra-spectral
  :com.colinphill.extra-special.unicode2))

Colin P. Hill 2023-01-30T17:36:33.110599Z

Discovered the cause and filed an issue: https://github.com/lambdaisland/kaocha/issues/390

Colin P. Hill 2023-01-30T17:37:48.675929Z

tl;dr: I did some odd things and suffered the consequences for my heterodoxy

Alys Brooks 2023-01-30T19:19:56.140689Z

I'll take a look, thanks!

Alys Brooks 2023-01-31T03:42:02.594909Z

Possible fix: https://github.com/lambdaisland/kaocha/pull/392