Reputation: 770
I have a SBT project I'm trying to separate into a multi-project build.
For some reason, there are a few tests I can't get to work when running the tests from the root build.
These tests use Akka, and it looks something is wrong with the class path - the config is not loaded properly and I get this error:
[error] com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'akka' (SimpleConfig.java:152)
The dependency is configured for the sub-project, and works fine when I run the tests from within the project itself, and not from the root build.
Does someone know how can I get this to work?
Thanks for your help
Upvotes: 2
Views: 407
Reputation: 11
Just been having this problem myself, we managed to solve it by enabling forking in the project:
ThisBuild / fork := true
Upvotes: 1