Fork me on GitHub
#reveal
<
2022-02-15
>
vlaaad20:02:11

Here is an early alpha preview of a test runner, featuring: • live progress reporting • unified output that tracks assertions (red/green) and prints (grey) in a test context • easy test selection (include/exclude filters) ...a lot of stuff is yet TBD

imre20:02:48

I wonder if integration with external runners, like kaocha would be possible?

vlaaad20:02:11

not really, it's an alternative runner that needs to run tests in a certain way for UI to be able to live-report

vlaaad20:02:29

what kind of kaocha integration do you have in mind?

imre21:02:34

Well, kaocha itself was created to be a rather flexible test runner with plugins etc. and I really like that its only focus is to do this one thing reasonably well. Among others it can discover all sorts of tests other than clojure.test ones, and even this property of it is extensible with plugins. For example, there is one plugin that looks at your source and if it discovers a function that has a function spec, it will run generative tests against it. Its pluggability makes it really nice to use with CI, we use it too. And given that it's out there and its focus is on discovering and running tests, I would most likely use it if I were to work on something that primarily focuses on something else, like visualizing stuff.

imre21:02:08

And on the user side if I rely on more exotic tests discovered by kaocha in ci, a tool that doesn't discover all of those locally can only be partially useful for running tests

imre21:02:04

Just an idea though, I'm not sure what your plans are with this

imre21:02:04

I made pretty much https://github.com/polyfy/polylith/issues/126#issuecomment-913626683 to the polylith folks some time ago but it hasn't been adopted (yet?) so I might be alone with this idea