【发布时间】:2012-09-06 16:42:37
【问题描述】:
在播放 application.conf 我有 default 值,%test、%stage 和 %prod 值:
%stage.application.mode=prod
%prod.application.mode=prod
%test.application.mode=test
#default values
property=someValue
%test.property=testValue
%stage.property=stageValue
%prod.property=prodValue
我无法更改这些,因为它们是在将应用部署到相应环境时使用的。
但是,我需要能够在测试模式下启动 Play,以便在本地机器上使用与 %test 不同的设置进行单元测试。
有没有办法添加另一个测试配置,比如%unittest 并使用这些配置在测试模式下开始播放(play test)?
【问题讨论】:
标签: playframework playframework-1.x