1
你好我嘗試改變自動生成測試用例Grails中更改autoGenerating Grails的測試腳手架斯波克測試
@TestMixin(GrailsUnitTestMixin)
class KLAKSpec {
void setUp() {
// Setup logic here
}
void tearDown() {
// Tear down logic here
}
void testSomething() {
fail "Implement me"
}
}
到斯波克型式試驗格式,它是這樣的
@TestFor(GrailsUnitTestCase)
class @[email protected] extends @[email protected] {
def "feature method"() {
setup:
when:
then:
where:
}
}
Althought我有在scipt文件夾下添加一個_Events.groovy腳本,並在artifacts文件夾中添加一個Spec.groovy文件,該文件夾在我自動生成列表時更改名稱。
任何人都可以請讓我知道我可以如何改變規格格式。