Create a second module named :library-shared-test and put :library as a dependency of it. Now, here’s the trick: add :library-shared-test as a dependency to your tests in :library . Instead, you’re creating a dependency chain from :library -> :library-shared-test -> :library ’s tests.