Unit testing via Jtest in command line
in Jtest
Hi,
I want to unit test in command line with jtest. First of all I generate unit test in intellij ide using jtest then I try to run test via Jtestcli in command line. But at the end of the process "executed test cases :0" why can't I run these test?
Normally these generated tests run in intellij ide successfully. How can I fix this problem? Related screen shot is added to discussion.
Tagged:
0
Answers
Hello @fatmanur61,
I would recommend using a build system supported by Jtest such as Ant, Maven, or Gradle. The Demo project that you're currently working on offer three different build files to help you get started. Be sure to verify that your version of Ant, Maven, and/or Gradle is supported with your version of Jtest.
Integrating with Build System:
https://docs.parasoft.com/display/JTEST1042/Integrating+with+Build+Systems
Ant Unit Test Command line:
Maven Unit Test Command Line:
Gradle Unit Test Command Line:
The Jtest plugin should produce a jtestcli command that will look similar to the following:
This will generate the necessary jtestcli command line to run your Unit Tests.
After this is ran you should see the following results:

There is also a README file within the demo project directory that also provide the command line used for running Unit Tests on the command line and provides more examples on how to run Static Analysis, run Test Impact Analysis, and Collect Application Coverage using the Jtest example Calculator project via command line.