This commit is contained in:
oneao committed 2026-10-13 22:32:50 +08:00
1 parent f3936cec61
commit 15e0ae5b67
115 files changed
+11399 -2741

No files matched your search

+28
View File
@@ -15,6 +15,12 @@
<description>erp-api</description>
<properties>
<java.version>21</java.version>
<!--
默认排除的 JUnit 标签。打上 @Tag("db") 的用例需要连真实 SQL Server,
在没有工作流表的库上会直接构建失败,因此**默认不随 mvnw test 运行**;
要跑它们用 -Pdb-tests(见文件末尾的 profile)。
-->
<excluded.groups>db</excluded.groups>
</properties>
<dependencies>
<dependency>
@@ -96,7 +102,29 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- 默认跳过需要真库的用例;-Pdb-tests 会把它置空 -->
<excludedGroups>${excluded.groups}</excludedGroups>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<!--
连真库的集成测试(打 @Tag("db")):./mvnw.cmd -o test -Pdb-tests
前置条件:server/config/dbconfigs/G3HD.properties 指向的库里已执行 sql/ 下的
workflow 建表与注册脚本(含 13 张 wf_* 表、s_power 动作权限点、mock 数据)。
-->
<profile>
<id>db-tests</id>
<properties>
<excluded.groups></excluded.groups>
</properties>
</profile>
</profiles>
</project>