Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give own application.conf file when running test coverage #54

Open
leoadnan opened this issue Jun 29, 2015 · 1 comment
Open

Give own application.conf file when running test coverage #54

leoadnan opened this issue Jun 29, 2015 · 1 comment

Comments

@leoadnan
Copy link

Hi,

How can I give my one own application.conf file instead of default when run the coverage? I have configuration files based on different environment like (local, qa, prod). It contains properties like db connections detail and others. When I start server normally I use this

activator "run -Dhttp.port=9001 -Dconfig.file=conf/application-local.conf"

Regards
Adnan Ahmed

@ahtik
Copy link

ahtik commented Aug 5, 2015

Did you try the following in your build.sbt ?

javaOptions in jacoco.Config ++= Seq(
  "-Dconfig.file=conf/application-local.conf",
  "-Dhttp.port=9001"
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants