如何使用application.properties中定义的特定配置文件运行quarkus测试

问题描述 投票:0回答:1

说我在application.properties中具有以下内容:

quarkus.datasource.url=${db_url:jdbc:postgresql://localhost:5432/ekycapi}
%dockerrun.quarkus.datasource.url=${db_url:jdbc:postgresql://postgres:5432/anotherdb}

[以开发人员模式运行时,我以“ mvn quarkus:dev -Dquarkus.profile = dockerrun”运行但是,如果我想在运行测试时使用相同的配置文件怎么办?正确的语法是什么?类似于“ MVN测试-Dquarkus.profile = dockerrun”?

unit-testing testing quarkus
1个回答
0
投票

使用quarkus.test.profile设置所需的测试配置文件。在all-config page

上查看更多配置选项
© www.soinside.com 2019 - 2024. All rights reserved.