Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 693 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 693 Bytes

A lib + intellij plugin that converts spock tests to junit + mockito.

The lib targets jdk11, however, the build requires jdk17.

Setup:

  1. Build the project ./gradlew clean build.
  2. Install the intellij plugin from disc - nospock/intellij-plugin/build/distributions/intellij-plugin.zip.
  3. 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.
  4. 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)