Java Mutation Testing Integration with Maven

2.6k views Asked by At

Our project will integrate mutation testing as part of its build cycle. Right now, we are on the evaluation phase.

So far, I have only found that Jester has a maven-plugin (Grester). I have not been able to find anything for the other mutation testing tools available (Jumble, µJava and Javalanche). Of course, we want full maven integration. We do not want to reinvent the wheel (i.e., write our own maven plugin for the tool that we choose).

Do you know of any maven-plugins for those Jumble, µJava and Javalanche? I've already googled and, like I said, have only found Grester. Also, if you know of any other mutation testing tools for java, any hints will be greatly appreciated.

2

There are 2 answers

1
henry On

PIT, provides a Maven plugin.

It's available from Maven central and has the advantage of being considerably faster than Jester, Jumble or muJava. It is also actively developed and supported which does not seem to be the case for Jester or muJava.

(disclosure I'm the author and am probably unfairly biased)

2
eis On

Of the mutation testing tools in the java world, I've found this about Maven support:

  • µJava: no
  • Bacterio: no (uses its own ide)
  • Javalanche: no (uses its own ide)
  • muTest (µTest): no
  • Jumble: yes
  • PIT: yes
  • Jester: yes
  • Simple Jester: no
  • Judy: no
  • MAJOR: no (uses its own compiler)

(This information was found by googling and from the article Delahaye, du Bousquet: A Comparison of Mutation Analysis Tools for Java.)

My vote would also go for PIT.