lazytest

msolli 2025-02-06T09:59:51.453539Z

Is it possible to use Lazytest with Leiningen? There are hints that it should in the readme. I want to convert my projects to deps.edn, but more than that I want to write better tests! 🙂

2025-02-06T12:47:43.900899Z

yes!

msolli 2025-02-06T12:49:52.698269Z

I know I shouldn't have asked a yes/no question! 😅 How can I use Lazytest with Leiningen? It would be nice to have lein test run Lazytest instead of the built-in thing.

2025-02-06T12:50:27.325019Z

[io.github.noahtheduke/lazytest "1.5.0"] in your dev dependencies

2025-02-06T12:50:43.032779Z

and then (sorry, on my phone)

2025-02-06T12:53:15.495819Z

:aliases {"test" ["run" "-m" "lazytest.main"]})

2025-02-06T12:54:27.504789Z

i thought i had this in the readme, so i'll add it

msolli 2025-02-06T12:57:21.413149Z

Thanks, works beautifully! Now, is there a way for Lazytest to "discover" legacy tests that are written with clojure.test? Or what is the recommended upgrade path for moving an existing codebase off of clojure.test?

2025-02-06T13:02:24.067629Z

lazytest cannot use and does not interact with clojure.test tests. you can either run both one after the other (from the terminal or in a make shift runner clojure file), while you migrate.

2025-02-06T13:02:45.211339Z

or you can use https://github.com/seancorfield/test-runner to run both to help you migrate

msolli 2025-02-06T13:05:01.975189Z

Ah, Sean Corfield to the rescue once again! Thanks, I'm off to the races with your advice now.

👍 1
👍🏻 1