kaocha

Official support channel: https://clojureverse.org/c/projects/kaocha
plexus 2020-07-03T08:04:24.388Z

@jatkin do you think there is an opportunity here to improve the documentation?

JAtkins 2020-07-03T13:47:50.389Z

Maybe just a note in the repl section that the above command works. That was the first place I looked when I was trying to figure out how to do this.

JAtkins 2020-07-03T13:58:10.390400Z

I don't know enough about it to make a PR unfortunately. I was in the middle of adding one but then I realized I didn't know how to make it reload the config. The normal --watch mode will look at your config file, but AFAICT this solution doesn't.

plexus 2020-07-03T15:07:45.391400Z

hmmm that's a good point, I think this should work, but we should come up with a better solution than this:

(kao-watch/run (assoc (kao-repl/config) :kaocha/cli-options {:config-file "tests.edn"}))

plexus 2020-07-03T15:09:07.392100Z

or maybe not, looking at kaocha,repl/config it already adds (assoc-in [:kaocha/cli-options :config-file] config-file), which should be enough to make the watcher watch it...

plexus 2020-07-03T15:09:37.392500Z

if that doesn't work then I would say that's a bug and you're welcome to file an issue

plexus 2020-07-03T15:12:20.393800Z

never mind, I filed two issues

JAtkins 2020-07-03T15:12:24.394100Z

Well, look what I get for assuming things 🙂 I just tried editing the test edn. Works fine. (I have the :watch? option in the file). I'll make a pr with a note in the docs if you want

plexus 2020-07-03T15:12:40.394500Z

that would be great!

JAtkins 2020-07-03T15:12:56.394800Z

This is with the simple

(kwatch/run (krpl/config))

plexus 2020-07-03T15:14:42.395300Z

yeah, I think that's a good recommendation. Please use the aliases watch and config in the documentation though

plexus 2020-07-03T15:15:19.396Z

keep in mind that only the doc/*.md files that start with numbers (01_.. to 09_...) are hand-written, the rest is generated from Cucumber tests

plexus 2020-07-03T15:15:39.396300Z

adding it to 07_watch should be good

JAtkins 2020-07-03T15:18:24.396800Z

Ok, I'll go and swap out the change in the pr.

JAtkins 2020-07-03T15:22:04.397Z

#150

plexus 2020-07-03T15:24:17.397200Z

merged! thank you for contributing to Kaocha!

JAtkins 2020-07-03T15:26:38.397800Z

No problem. I love using it - this has been my dream workflow for a while now 🙂