【问题标题】:Where are the integration test reports for Grails?Grails 的集成测试报告在哪里?
【发布时间】:2013-06-19 16:49:11
【问题描述】:

当我执行时:

grails test-app

它执行单元测试和集成测试。

输出还说我应该检查我的测试报告目录以获取结果

| Tests PASSED - view reports in ~/../target/test-reports

当我在那里查看时,它只有我的单元测试报告,而不是集成报告。

这是一个错误吗?

【问题讨论】:

    标签: testing grails report integration-testing


    【解决方案1】:

    您会看到测试报告显示单元测试结果,但您会在列表中找到您的集成测试。如果您选择“包摘要”,您将能够正确看到差异。

    [Grails 2.2.0]
    我还假设命令grails create-integration-test 用于创建集成测试。

    【讨论】:

    • 我不确定问题出在哪里,但它开始起作用了。我手动创建了测试并将它们放在正确的位置,但是在我运行一次 create-integration-test 后,报告开始生成。
    • @SohelKatchi 很高兴我能够以其他方式提供帮助。 :)
    • 对于 Grails 3.2.8,您可以在build/reports/tests/index.html查看报告
    【解决方案2】:

    关于 Grails 3.2.13,测试结果保存在build/test-results。

    集成测试结果进入build/test-results/integrationTest目录。单元测试结果进入build/test-results/test目录。

    【讨论】:

      猜你喜欢
      • 2020-11-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多