Fork me on GitHub
#conjure
<
2021-03-04
>
adambros05:03:51

what’s the story if i want to use a different test runner & reporter (say kaocha) when running tests using conjure? I didn’t find anything, and I’m hesitant to try to figure out a custom mapping to use kaocha’s cli functions…

dharrigan07:03:11

I use kaocha

dharrigan07:03:30

Works fine, just put this into your vim config let g:conjure#client#clojure#nrepl#test#current_form_names = ['deftest', 'defexpect']

dharrigan07:03:46

so that conjure knows that defexpect is a valid test to run

adambros07:03:02

Right but how do I use kaocha.report/documentation as the test reporter?

Olical08:03:47

There's no config to have conjure run a different test runner at the moment. If it's almost identical to clojure.test then it shouldn't be hard to add. If someone could raise an issue with more details that'd be great, thanks!

dharrigan09:03:54

@adambros do you have a tests.edn in your project root?

adambros18:03:18

i do, i am currently using kaocha with a watch to run my tests, but i’m wanting to transition to running some tests in the repl, hence my question

dharrigan18:03:03

Ah, I see. Okay. That I don't do. I normally just have kaocha watching in a separate terminal all my tests and re-running as I make changes.

adambros18:03:51

yeah in my case when some namespaces get changed it causes most of the app to reload which takes ~ 10 seconds

adambros18:03:07

so i’m wanting to short circuit that and just run what i want when i want

Olical18:03:00

Thanks! Already got 3-4 notifications from various sources 😅

adambros18:03:07

ah right sorry

Olical18:03:14

Every conjure interaction causes my phone to ezplode

Olical18:03:16

No worries!

Olical18:03:45

Thanks for opening , helps me remember without having to maintain my own Todo lists

👍 3
adambros18:03:49

as a note, this is not urgent, i can manage without it, but it has been a reason i never sped up my testing workflow as the reporting has not been customizable