I am struggling with one issue for a couple of weeks. I am trying to do a simple example with reactivemongo operations. I am able to run the tests successfully in my IntelliJ IDEA.
However, when I run `sbt test` the test is failing with the below error:
com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'akka'
at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:156)
at com.typesafe.config.impl.SimpleConfig.findKey(SimpleConfig.java:149)
at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:176)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:188)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:193)
at com.typesafe.config.impl.SimpleConfig.getString(SimpleConfig.java:250)
at akka.actor.ActorSystem$Settings.<init>(ActorSystem.scala:329)
at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:703)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:258)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:302)
at reactivemongo.api.AsyncDriver.<init>(AsyncDriver.scala:75)
at reactivemongo.api.AsyncDriver$.apply(AsyncDriver.scala:498)
I have tried a lot of google search, but could not find the solution. I have tried copying the entire reference.conf from akka into my test resources, but still no use. I understand that somehow the application.conf is getting overwritten and losing the configs, but have no idea what to do to solve this.
Note: It is a multi module sbt project, with different akka versions in some of the modules.
Could anyone guide me with this? I am really struggling, and not sure what to do next. I am not posting the code since I doubt it is to do with the code as the tests pass in intelliJ, but fail in sbt.