Fork me on GitHub
#babashka
<
2021-10-22
>
rafaeldelboni12:10:00

Hi, how do you folks test your babashka task functions? I was reading this: https://book.babashka.org/#_running_tests So pretty much doing the test-runner.clj and later bb test-runner.clj?

borkdude12:10:37

Exactly, just write tests and write a wrapper script

rafaeldelboni12:10:26

Cool, I'm gonna give this a try, thanks!

rafaeldelboni12:10:25

Usually, you let this runner in the root of your project?

borkdude12:10:11

You can place it anywhere you like. You can even hook this script up again to a task in bb.edn

borkdude12:10:39

{:tasks {test {:task (load-file "scripts/bb_tests.clj")}}}

rafaeldelboni12:10:22

I know 😁 , but just for following a pattern, I'm horrible with those things. Cool! The task part is super interesting! Thanks again.