Excluding DAML unit tests from target DAR

We strongly recommend implementing test scripts in a separate project. The main downside of this recommendation is that in this setup the templates from the main project are imported into the test modules via data-dependencies, which means that in Daml Studio any changes you make to the main project will not propagate into the test modules until the main project is rebuilt. There’s a workaround for this, which allows modifications to the main project modules to propagate to test modules right away without the need to rebuild the main project, but this workaround requires a rather complicated project structure with symlinks. For more details, see this previous thread.

1 Like