I am creating a Spock test for my plugin project-plugin
and my main project name is main-project
which is using project-plugin
as a plugin. So when I am creating a Spock test for my plugin its throwing above error means its warning project-plugin
has error because of below class.
Is creating Spock test for plugin will differ to creating Spock test for main project.
For example I have created a new sample project and created spock test for service which is working without any error.
import grails.test.mixin.TestFor
import spock.lang.Specification
@TestFor(DataImportService){
}
I have also tried refreshing dependency with command grails> refresh-dependencies -Dplugins.useInline=true
Dependencies refreshed. but still same error.
Should I run my unit test cases with main-project
or plugin-project
.
How to sort this issue.
Thank you.