A lib + intellij plugin that converts spock tests to junit + mockito.
The lib targets jdk11, however, the build requires jdk17.
Setup:
- Build the project
./gradlew clean build
. - Install the intellij plugin from disc - nospock/intellij-plugin/build/distributions/intellij-plugin.zip.
- Select bundled jar to use for conversion. In settings (Tools -> NoSpock Settings) the 'Executable jar path' should point to the absolute path of the bundled jar - nospock/cmd/build/libs/cmd.jar.
- Within the project tree select a spock file or a directory that you want to convert. Use the Refactor -> Spock to Java ☕ action (linux alt+shift+j; macos option+shift+j)