pitest plugin for maven don't generate XML reports

366 views
Skip to first unread message

Victor Izawa

unread,
Nov 20, 2014, 11:40:33 AM11/20/14
to pitu...@googlegroups.com
Hi, I trying to generate XML reports using plugin maven but only generate HTML reports.

Is there something missing in my pom.xml?

My pom.xml

...
<plugins>
    <plugin>
      <groupId>org.pitest</groupId>
      <artifactId>pitest-maven</artifactId>
      <version>1.1.2</version>
      <configuration>
        <inScopeClasses>
          <param>xxxx.br.com*</param>
        </inScopeClasses>
        <targetTests>
          <param>xxxx.br.com*</param>
        </targetTests>
        <mutators>
            <mutator>ALL</mutator>
        </mutators>
        <outputFormats>
          <outputFormat>XML</outputFormat>
        </outputFormats>
      </configuration>
    </plugin>
</plugins>
...


henry

unread,
Nov 20, 2014, 4:23:03 PM11/20/14
to pitu...@googlegroups.com


On Thursday, 20 November 2014 16:40:33 UTC, Victor Izawa wrote:
Hi, I trying to generate XML reports using plugin maven but only generate HTML reports.

Is there something missing in my pom.xml?



Hi Victor,

The inScopeClasses parameter was replaced by targetClasses a long time ago, but apart from that the pom looks fine and ought to generate XML output. I can only guess that this configuration is not being picked up due to something else in your pom that isn't shown.

Henry

Victor Izawa

unread,
Nov 20, 2014, 6:41:21 PM11/20/14
to pitu...@googlegroups.com
You're right Henry...

I fixed the inScopeClasses parameter and I found the problem in my pom.xml, I'm using a outputFormat XML in a specific profile. When I trying to use a default profile, the plugin was using outputFormat default that was HTML.

My fault...

thanks Henry.
Reply all
Reply to author
Forward
0 new messages