testing

Testing tools, testing philosophy & methodology...
emergence 2017-01-25T19:41:58.000047Z

Hi -- has anyone had an issue similar to this: Using boot to run a clj/s test suite on CircleCI (with some clojure.spec tests). When tests fail, CircleCI does not recognize and says tests were successful. I think it's because an exit code of 0 was returned but I'm wondering if there's more going on.

anmonteiro 2017-01-25T21:18:40.000048Z

@emergence I had that issue with ClojureScript

anmonteiro 2017-01-25T21:19:26.000049Z

if that's your issue, just use @bensu's Doo library

anmonteiro 2017-01-25T21:19:35.000050Z

https://github.com/bensu/doo

anmonteiro 2017-01-25T21:19:50.000052Z

it'll return the correct exit code for CI's

emergence 2017-01-25T21:20:06.000053Z

Hi @anmonteiro -- Thanks for responding. I actually just figured it out. Was using crisptrutski/boot-cljs-test and had to add :exit? true to my (test-cljs) call. I believe it uses doo as a dependency.

anmonteiro 2017-01-25T21:20:30.000054Z

yes!

emergence 2017-01-25T21:20:48.000055Z

🙂

anmonteiro 2017-01-25T21:21:54.000056Z

@emergence you can have a look at a slightly complex setup here: https://github.com/anmonteiro/lumo/blob/master/build.boot#L36-L52