Fork me on GitHub
#leiningen
<
2021-11-08
>
Yuner Bekir09:11:27

Hello! Is there a way to run tests only for namespaces affected by recent changes and not for the whole project?

vemv10:11:25

Lein doesn't bundle this If you want to run tests on save, https://github.com/jakemcc/test-refresh does that If you want to inspect the git status for obtaining a corpus, https://github.com/nedap/formatting-stack/blob/465ecbdb6f29a370f1d149ca2f78a96c57937cd4/src/formatting_stack/processors/test_runner.clj#L2-L6 does that (that's the impl; here's how a project integration would look like. It's just calling test! https://github.com/nedap/speced.def/blob/00e283c901b6433b7e8638b7ab683ddc937ab20f/dev/dev.clj#L34-L38)

Yuner Bekir17:11:36

I will look into them thanks 🙂