resource = context.getResource(new org.sonar.api.resources.File(mutant.getSonarJavaFileKey()));
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>0.33</version>
<configuration>
<targetClasses>
<param>kam.*</param>
</targetClasses>
<targetTests>
<param>kam.*</param>
</targetTests>
<failWhenNoMutations>false</failWhenNoMutations>
<outputFormats>
<outputFormat>XML</outputFormat>
<outputFormat>HTML</outputFormat>
</outputFormats>
</configuration>
</plugin>
Hi Gregor, Hi Alexandre,
I ran into the same issue and could resolve the issue to the same line. We are using SonarQube 4.1 with sonar-pitest plugin 0.3 - Compatibility matrix at http://docs.codehaus.org/display/SONAR/Plugin+version+matrix says plugin version 0.3 works with SonarQube 4.1 so I didn't expect any issues.
The line was changed some days prior to the 0.3 release (see https://github.com/SonarCommunity/sonar-pitest/commit/e9e9ef4fcdee7271024565bbe1fd369add4f695d).
@Gregor maybe you can switch to sonar-pitest plugin version 0.2 which should work with Sonar 3.7 according to the compatibility matrix.
I'll ask my admin if he can update SonarQube to 4.3 but I don't expect him to resolve this before thursday. Does anyone have any other ideas?
Regards
Stefan
--
You received this message because you are subscribed to the Google Groups "PIT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pitusers+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You are right, Stefan, Sonar 3.7.x should work with pitest 0.2x.!
I tested but the issue remains:
With versions 0.25 to 0.29 I can reproduce the issue.
With versions 0.20 to 0.24 the Maven build with pitest fails (various reasons, "Cannot construct org.pitest.mutationtest.MutationCoverageReport as it does not have a no-args constructor", Test suite fails, ...)
I also tested with the remaining 0.3x versions, also no luck here:
With 0.30 and 0.32 I can reproduce the issue
Version 0.31 lets the pitest build fail (claims test suite would be not green)
I'm happy for any futher input!
Thank you,
Gregor
Can not execute SonarQube analysis: Parameter 'directory' is not a directory
Hello Alex,
I have the Pitest widget activated and the
drilldown view iI was talking about is the one that can be reached by clicking on any
link in the widget.
The link I was referring to is one of those under the classname, next to "Coverage", "Duplications", "Issues" and "Source". With version 0.2 I had also one labelled "Mutant Coverage", that I don't see when using plugin
verison 0.4 (see first screen shot below). By clicking on it you got this
pretty view of the source code showing wich line was mutated how and if
this mutant was killed or not (see second screen shot taken from result
of version 0.2).
Any idea what is wrong with my setup? Or this there another way to reach this source code view with the mutant coverage information?
Thank you!
Gregor
--
You received this message because you are subscribed to a topic in the Google Groups "PIT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pitusers/xqnyWpgMjDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pitusers+u...@googlegroups.com.
--