Spock without maven or gradle

后端 未结 2 575
栀梦
栀梦 2021-01-12 06:28

I have a standard Java project that uses ant for building. I would like to add spock testing to this project without disrupting the current process. What is the minimum set

2条回答
  •  不知归路
    2021-01-12 07:04

    If you have a mix of jUnit and Spock tests in your test package (like we do), you can use the joint compilation feature of groovyc, something like this:

        
            
         
    

    This will automagically compile both the Java and Groovy tests together. From this point on, you can run the tests as before using the junit task.

提交回复
热议问题