Grails没有找到给定的测试,包括集成测试文件ANLD单元测试文件两者都存在



我遇到了一个奇怪的问题3.2.6

我创建了一个集成测试和由Grails Command

创建单元测试
src
 --integration-test
  --groovy
    --it
      --test01
 --test
  --groovy
    --ut
      --test02

运行IntegrationT测试test01时,我有一个错误没有找到给定的测试,包括

如果我删除ut.test02,我收到了一条消息,说通过了测试。

如何解决?

我的层次结构是自动创建的。

无论如何,我通过在配置命令行中添加 - 集成来解决像这样

test-app it.test01 -echoOut -integration

您正在错误的位置访问您的集成测试。请像这样的层次结构

--test
  --integration-test
    --groovy
      --it
        --test01
    --groovy
      --ut
        --test02

最新更新