Is there any example for continues testing with mount + boot-test?
@doglooksgood: take a look at these examples: https://github.com/tolitius/stater they are boot based. as far as "continues" testing, I usually do boot watch speak test
in a different REPL and all tests run automatically on changes
(deftask run-tests []
(set-env! :source-paths #(conj % "test/server"))
(mount/start)
(comp (watch)
(speak)
(test)))
I wonder where should I call mount/start
I want to use boot run-tests
in terminal to start testing.
usually you would have calls to (mount/start)
within the tests, so you can just do: https://github.com/tolitius/mount/blob/master/build.boot#L73-L75
since you are testing certain parts of an app
where tests would start / stop parts of the app, or the whole app, depending on what needs to be tested: https://github.com/tolitius/mount/blob/master/test/core/mount/test/start_with.cljc#L25-L32
Got it, thanks very much!
sure, very welcome
Here's the -main
fn: https://github.com/pmonks/bot-unfurl/blob/master/src/bot_unfurl/main.clj#L61
And here's where the config file specified on the command line ends up: https://github.com/pmonks/bot-unfurl/blob/master/src/bot_unfurl/config.clj#L21
From there on, it's vanilla mount all the way down!