-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support using a custom test runner & reporter #188
Comments
I help maintain Kaocha and love Conjure, so if you need anything from our end, feel free to let me know! |
Probably needs some polish, but this is working on the
With the following config (requires translating to viml, I used nvim-local-fennel)...
|
So what do people think about leaving the current test mappings as invoking Or are both routes useful in different scenarios? I was originally leaning towards the current experiment on I'm also reworking it so you can set one config option, |
Fixed things up a little so I'm turning off ANSI colours while running tests through kaocha and massively simplified the usage. If you wanna try this out, set this in your config! let g:conjure#client#clojure#nrepl#test#runner = "kaocha" I'd love some feedback on this 😄 if it's already scratching the itch I'll probably move forward with releasing it this week (along with all the other fixes on develop). Enjoy! |
Personally, I already run kaocha watch in a separate terminal, and have recently found a lot of value in running a specific test without having kaocha reload the entire project (which takes ~10-20 seconds). |
I agree with @Pancia, although starting Kaocha through the REPL could be useful sometimes, especially for people who don't use |
Thanks for the feedback! I'll stick with what I have for now then, it allows you to run your tests with kaocha instead of clojure.test. Adding a way to launch kaocha with a command can be a future thing if people really want it (but you can also just add a comment in your code that contains the code for this and eval it, I think it's like one form?). |
I noticed you added |
I didn't add any config because I wasn't sure of the use cases yet, but
would you be able to open another issue and I'll work something out?
…On Thu, 1 Apr 2021, 19:16 Anthony, ***@***.***> wrote:
I noticed you added :call-suffix "{:kaocha/color? false}", but no way to
configure it?
I personally would like to modify it, in my case to {:config-file
"tests.local.edn"}, do you see a way to easily support this?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#188 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACM6XINKBCXV4NB2IIZCW3TGSZ6ZANCNFSM4YTYTKVA>
.
|
I would like to be able to use a different test runner & reporter, in this case kaocha.
It's documentation https://cljdoc.org/d/lambdaisland/kaocha/1.0.732/doc/5-running-kaocha-from-the-repl tells you what functions are available, and I can confirm that evaluating manually a
deftest
wrapped in akaocha.repl/run
does what i want.Alternatively, I would be content with a way to wrap the current test running with a
(binding [t/report X] ,,,)
, where X is a differentclojure.test/report
function, eg:kaocha.report/documentation
.The text was updated successfully, but these errors were encountered: