Search code examples
hudsonmaven-3hudson-pluginsparasoftjtest

How to integrate Parasoft (JTest) in Hudson?


I normally use JTest Parasoft as a plugin in Eclipse.

But now, I need to integrate JTest in Hudson, at a way that in the Post-build, JTest should run its tests over a Maven project.

So my questions are :

  1. How to integrate JTest in Hudson? I found a plugin CppTest by Parasoft and not JTest...
  2. How to specify the tests which should be run on the project? For example, configure JTest to run "Find unused code" which is included in "Static Analysis"...?

Thank you a lot.


Solution

  • Jtest has fully functional command line interface so generally integration should not be a problem.

    As for your questions:

    1) there is a Jtest plugin for Maven, so you will be able to trigger your post-build action easily. It's thoroughly described on http://build.parasoft.com .

    2) you can specify the Test Configuration of your choice by using -Dparasoft.config option (i.e.: mvn parasoft:jtest -Dparasoft.config="user://Unused Code").

    You can find all the parameters which can be used with parasoft:jtest goal described here: http://build.parasoft.com/docs/maven-parasoft-plugin/jtest-mojo.html .