david-schuler/javalanche — Issue #4: Coverage Impact for Javalanche-0.4 (Equivalent Mutants)
Author: kevinjalbert
Created: 2012-03-01 15:46:19+00:00
State: open

I am using Javalanche on an open source project and I am trying to take into account *Equivalent Mutants*. I found out that Javalanche does not handle equivalent mutants automatically (which I kind of expected), but instead requires the addition of [Coverage Impact Analysis] [3]. I decided to try using it and followed the provided [Example Triangle Coverage Impact] [1] for Javalanche-0.4 (as of 2fa6e1a48ad84777d352554a1587c2e08dc16557) and it does not function correctly.

It seem as if the *createCoverageData* and *runMutationsCoverage* tasks do nothing (the following shows the output of this task for the provided example using a *log.level=DEBUG*) and in the ending no mutants were evaluated:

```
> ant -f javalanche.xml -Dprefix=triangle -Dcp=target/classes/:./lib/junit.jar -Dtests=triangle.tests.TriangleTestSuite -Djavalanche=../../ -Djavalanche.log.level=DEBUG createCoverageData
Buildfile: /home/jalbert/workspace/javalanche/javalanche-0.4/examples/triangle/javalanche.xml

mutationDir:

createCoverageData:

javalancheTask:
[junit] Tests run: 18
[junit] Failing Tests: 0

BUILD SUCCESSFUL
Total time: 1 second
```

After looking around I quickly found the following comment in the [javalanche.xml] [2] mentioning that the ability *"to compute the coverage or invariant impact (not supported in current version) of the mutations"*.

I created this issue to raise this lack of functionality in the latest version. I hope that eventually this will be added back in.

[1]: https://github.com/david-schuler/javalanche/wiki/Example-Triangle-Coverage-Impact "Example Triangle Coverage Impact"
[2]: https://github.com/david-schuler/javalanche/blob/master/javalanche.xml#L26 "javalanche.xml line 26"
[3]: https://github.com/david-schuler/javalanche/blob/master/src/main/resources/coverage-include.xml "coverage-include.xml"