fix(channel): 修复发布构建中的测试跳过冲突 - #4112
Merged
Merged
Conversation
🤖 Augment PR Summary总结:将 Channel 模块 Surefire 的 🤖 Was this summary useful? React with 👍 or 👎 |
🤖 Augment PR Summary总结:将 Channel 模块 Surefire 的 🤖 Was this summary useful? React with 👍 or 👎 |
问题
发布工作流使用
-Dmaven.test.skip=true跳过测试编译,但 channel 模块固定 Surefire 的<skip>false</skip>,导致 TestNG 执行 suite 时找不到未编译的WxChannelProductManagementServiceImplTest。修复
让 Surefire 的
skip读取${maven.test.skip},使发布流程一致跳过测试编译与执行;常规构建仍运行对应 TestNG suite。验证
mvn -pl weixin-java-channel clean test -Dmaven.test.skip=true -Dgpg.skip=true --no-transfer-progressmvn -pl weixin-java-channel -am clean test -Dgpg.skip=true --no-transfer-progress(56 tests, 0 failures)