3

我创建了一个新的 grails 应用程序,它带有一个只呈现“hello”的空控制器。

然后我创建了一堆单元测试来验证它是否打招呼,基本上是 x 4:

void "test something"() {
    when:
    controller.index()

    then:
    response.text == "hello"
}

但是,在我的输出中,似乎认为有 2 个测试,至少最初是:

Running 2 unit tests...
Running 2 unit tests... 1 of 2
Running 2 unit tests... 2 of 2
Running 2 unit tests... 3 of 3
Running 2 unit tests... 4 of 4
Completed 4 unit tests, 0 failed in 0m 5s

怎么了?

4

1 回答 1

0

你没有做错任何事。请参阅https://jira.grails.org/browse/GRAILS-11473

抱歉,添麻烦了。

于 2014-10-22T17:27:20.987 回答