I have made a demo project and published it on GitHub:
I am going to develop a custom Keyword in a Katalon Studio project. See a post in the Katalon forum for the background story. My custom keyword is expected to be fairly large, complicated, and therefore bug-prone. So I want to execute thorough unit-testing on my Groovy classes and methods with JUnit4 in Katalon Studio.
I was aware that the Katalon Studio’s distributed zip file contains
plugins/org.junit_4.12.0.jar. I tried a test case of single line:
This worked! I mean, import statement succeeded, no error emitted. I realized that the JUnit classes are available in the Katalon Studio’s Java VM.
OK, all I need to know is where to locate test classes, how to activate the junit-test-runner, and how to report the test result. I have done an experiment. I believe I have got a success.