kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
vikeri 2019-11-20T10:33:32.041300Z

How do I know which ones?

vikeri 2019-11-20T12:17:37.044700Z

I’ve added the ns as you specified and it picks up that a file has changed in my script directory but those changes are not propagated to the tests (eg. if I break a fn it won’t fail the test). My setup is: - test dir, src dir works well and as they should - script dir added both in project.clj test profiles to source-paths and in tests.edn - Running kaocha with leiningen - Restarting the test or running the test once will pick up changes, using watch will not - MacOS - [lambdaisland/kaocha "0.0-541"]

plexus 2019-11-20T13:25:16.045100Z

what kind of files are under script? are those regular namespaces?

vikeri 2019-11-20T13:25:47.045700Z

Scripting stuff, but yeah, regular namespaces

plexus 2019-11-20T13:26:26.046100Z

a repro repo would be very helpful...

vikeri 2019-11-20T13:27:22.047100Z

Yeah for sure. This week I’m pretty swamped now but I’ll try to put it together next week. And then attach it to an issue in the kaocha repo?

plexus 2019-11-20T13:28:07.047500Z

yeah that'd be great, or just DM me with the link and I'll have a look

vikeri 2019-11-20T13:28:12.047700Z

:thumbsup:

vikeri 2019-11-20T13:28:36.048200Z

Appreciate the work on kaocha, definitely took Clojure testing to the next level 👏

plexus 2019-11-20T13:28:53.048400Z

that's really good to hear 🙂

2019-11-20T18:27:39.050600Z

Hey! I'm trying to clear out some WARNINGS from our build, specifically:

clojure -A:test -m kaocha.runner unit
WARNING: reader-conditional already refers to: #'clojure.core/reader-conditional in namespace: clojure.tools.reader.impl.utils, being replaced by: #'clojure.tools.reader.impl.utils/reader-conditional
WARNING: tagged-literal already refers to: #'clojure.core/tagged-literal in namespace: clojure.tools.reader.impl.utils, being replaced by: #'clojure.tools.reader.impl.utils/tagged-literal
I've isolated the culprit dependency:
clj -A:dev:test -Stree | grep -C 15 'clojure.tools.reader'
...
lambdaisland/kaocha 0.0-554
  lambdaisland/deep-diff 0.0-47
    mvxcvi/puget 1.1.2
    fipp/fipp 0.6.17
    mvxcvi/arrangement 1.2.0
    org.clojure/core.rrb-vector 0.0.14
    tech.droit/clj-diff 1.0.1
  slingshot/slingshot 0.12.2
  aero/aero 1.1.3
  lambdaisland/tools.namespace 0.0-234
    org.clojure/java.classpath 0.3.0
    org.clojure/tools.reader 1.3.2 <=================
But investigating further, tools.reader 1.3.2 includes the upstream fix for these warnings: https://github.com/clojure/tools.reader/commit/c503ed4b3b69b3d9f4be14e154b781cbeee4f54d So I'm not sure why I am seeing these warnings at all... anyone able to point me in a direction for resolving this? We are on Clojure 1.10.0-RC5, if that makes a difference (I quickly tried an upgrade to 1.10.1 and the issue did not resolve).

miikka 2019-11-20T20:26:30.051100Z

The Clojure version shouldn't matter... I've seen the same problem many times, but never had the time to investigate

2019-11-20T20:27:43.051700Z

Currently investigating in #tools-deps , looks like it's a cloverage issue

miikka 2019-11-20T20:34:54.052400Z

Heh, nice. I figured out that some dep must contain extra copy of tools.reader but didn't immediately think of cloverage.

plexus 2019-11-20T21:19:45.053200Z

Hah, interesting. Thanks for investigating! I've seen those before but never cared enough to investigate.

2019-11-20T22:46:49.053700Z

I just want a warning free REPL :(

plexus 2019-11-20T23:52:36.054400Z

You and me both buddy both sometimes you pick your battles

plexus 2019-11-20T23:53:53.055400Z

Put an issue on github, add what you found out if anything. I'm sure we can get this fixed.