【问题标题】:ERROR MailServiceIT.testSendEmailFromTemplate:143错误 MailServiceIT.testSendEmailFromTemplate:143
【发布时间】:2022-08-12 06:44:49
【问题描述】:

我正在使用 JHipster 7.6.0 (Spring boot + React),当我运行集成测试时出现以下错误。我在互联网上搜索但我什么也没找到 提前致谢!

[ERROR]   MailServiceIT.testSendEmailFromTemplate:143 
expected: \"test title\"
 but was: \"Activation de votre compte gestionUtilisateurs\"
[INFO] 
[ERROR] Tests run: 225, Failures: 1, Errors: 0, Skipped: 0
[INFO] 
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.7:report-integration (post-integration-tests) @ gestion-utilisateurs ---
[INFO] Loading execution data file C:\\Users\\ASUS\\.jenkins\\workspace\\apisation portnet\\target\\jacoco-it.exec
[INFO] Analyzed bundle \'Gestion Utilisateurs\' with 83 classes
[INFO] 
[INFO] --- maven-checkstyle-plugin:3.1.2:check (default) @ gestion-utilisateurs ---
[INFO] You have 0 Checkstyle violations.
[INFO] 
[INFO] --- maven-failsafe-plugin:3.0.0-M5:verify (verify) @ gestion-utilisateurs ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:20 min
[INFO] Finished at: 2022-02-21T14:36:42+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:3.0.0-M5:verify (verify) on project gestion-utilisateurs: There are test failures.
[ERROR] 
  • 如果您没有修改任何内容,这看起来像是一个错误,您应该在 github 上报告并提供适当的详细信息。
  • 我没有改变任何东西。好的,我现在就报告!谢谢你的答案

标签: spring-boot jenkins continuous-integration jhipster


【解决方案1】:

如果您选择法语作为应用程序的母语,则会发生此故障。我在 JHipster GitHub 存储库上报告了这一点。我还提到了如何解决它,以便集成测试不会失败。 这是失败的详细信息:

https://github.com/jhipster/generator-jhipster/issues/17946

你可以找到我的问题解决方案建议修复上面链接中的部分

更新

自 JHipster versoin 7.9.0 起,此问题已得到修复

【讨论】:

    猜你喜欢
    • 2011-10-21
    • 2017-03-28
    • 1970-01-01
    • 2021-05-21
    • 2015-12-09
    • 1970-01-01
    • 2010-12-20
    • 2017-09-27
    • 2013-03-23
    相关资源
    最近更新 更多