简体   繁体   English

grails test-app个人集成测试

[英]grails test-app individual integration test

How do I execute an individual grails integration test? 如何执行单个grails集成测试?

grails test-app com.mytest.UserIntegrationSpec does not work grails test-app com.mytest.UserIntegrationSpec不起作用

I have an integration test called com.mytest.UserIntegrationSpec: 我有一个名为com.mytest.UserIntegrationSpec的集成测试:

package com.mytest

import grails.test.mixin.integration.Integration
import grails.transaction.*
import spock.lang.*

@Integration
@Rollback
class UserIntegrationSpec extends Specification {
:

Try with 试试看

grails test-app integration: com.mytest.UserIntegrationSpec . grails test-app integration: com.mytest.UserIntegrationSpec

When executing individual test I use that command and it works. 当执行单个测试时,我使用该命令,它可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM