Fork me on GitHub
#polylith
<
2024-03-06
>
DenisMc14:03:12

Hi, recent polylith convert and really like the concept. I’ve migrated my project to polylith in its entirety, except for one piece - acceptance tests. As part of my github actions build, I run my acceptance tests at a later stage than my unit and functional tests. I have seen others here talk about using a kaocha runner to run tests in this way, but haven’t seen any actual example for how to set a project up to do so. Is there a simple way of doing this, I wonder? I run my tests using poly test :all, would be great if I could specifiy whatever source folders I hold my acceptance tests in separately, and run them using a separate command.

furkan3ayraktar15:03:39

You don’t need koacha for this purpose. You can use https://cljdoc.org/d/polylith/clj-poly/0.2.19/doc/testing#project-tests for it. So normally, you can run poly test and it will run your tests in each brick that was affected by changes since the latest stable point (incremental testing). When you want to run your acceptance tests, you can run poly test :project, which will include the project tests.

tengstrand16:03:59

Yes, and :all will include the project tests too.

DenisMc21:03:06

Thanks, I’ll take a look at this.