我创建了一个新的 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
怎么了?