@jatkin do you think there is an opportunity here to improve the documentation?
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.
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.
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"}))
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...
if that doesn't work then I would say that's a bug and you're welcome to file an issue
never mind, I filed two issues
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
that would be great!
This is with the simple
(kwatch/run (krpl/config))
yeah, I think that's a good recommendation. Please use the aliases watch
and config
in the documentation though
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
adding it to 07_watch should be good
Ok, I'll go and swap out the change in the pr.
#150
merged! thank you for contributing to Kaocha!
No problem. I love using it - this has been my dream workflow for a while now 🙂