1

現在 PITest を試していますが、これまでのところ正常に動作しています。ただし、これは非常に遅く、これまでの唯一の解決策は、インクリメンタル分析を使用することです。これにより、速度が遅くなる可能性があります。ドキュメントに記載されているように設定しようとしました。これが私の構成です:

 <build>
<plugins>
  <plugin>
    <executions>
      <execution>
        <id>pitest-mutation-coverage</id>
        <goals>
          <goal>mutationCoverage</goal>
        </goals>
      </execution>
    </executions>
    <groupId>org.pitest</groupId>
    <artifactId>pitest-maven</artifactId>
    <version>1.4.6</version>
    <configuration>
      <threads>8</threads>
      <timestampedReports>false</timestampedReports>
      <historyInputFile>${project.basedir}/pitest.history</historyInputFile>
      <historyOutputFile>${project.basedir}/pitest.history</historyOutputFile>
      <avoidCallsTo>
        <avoidCallsTo>java.util.logging</avoidCallsTo>
        <avoidCallsTo>org.slf4j</avoidCallsTo>
      </avoidCallsTo>
      <mutators>
        <mutator>DEFAULTS</mutator>
      </mutators>
    </configuration>
  </plugin>
</plugins>

ただし、実際には、PITest が historyInput と historyOutput を考慮に入れていることはわかりません。代わりに、私が見ているログでは

[INFO] Will read and write history at /var/folders/x1/qp5hhks571q0drb7kd7vjn0c0000gn/T/my.module.groupId.artifactId.version_pitest_history.bin

さまざまな設定をたくさん試しましたが、どれもうまくいかないようです。足りないものはありますか?

アップデート

最終的に、プラグイン定義は親 pom からのものであり、それを継承する子 pom で部分的にオーバーライドできることが判明しました。

4

1 に答える 1