How can I specify a different config file for testing in Play 2.1

前端 未结 4 1468
误落风尘
误落风尘 2021-02-02 17:06

I would like to define different database connections for multiple test environments(Production, Staging, Development). After reading the post \"How do I specify a config file w

4条回答
  •  青春惊慌失措
    2021-02-02 17:54

    Update for Play 2.5.x

    Explicit import for import Keys._ is no longer required, and the vm param for config resource location has changed.

    javaOptions in Test += "-Dconfig.resource=.conf"
    

提交回复
热议问题