私はscalatest-maven-plugin最新バージョン1.0を使用しています。source code hereです。並行して、私のスイートを実行しようとすると、次の設定を使用して:Scalatest mavenプラグイン:エラー:-cは非常に長い間廃止され、サポートされなくなりました
<build><plugin>
<groupId>org.scalatest</groupId>
<artifactId>scalatest-maven-plugin</artifactId>
<version>1.0</version>
<configuration>
<reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
<junitxml>.</junitxml>
<filereports>WDF TestSuite.txt</filereports>
<htmlreporters>${project.build.directory}/html/scalatest</htmlreporters>
<parallel>true</parallel>
</configuration>
<executions>
<execution>
<id>test</id>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin></build>
はエラーを構築し、次のMavenにつながる:
[INFO]
[INFO] --- scalatest-maven-plugin:1.0:test (test) @ myproject ---
Exception in thread "ScalaTest-main" java.lang.IllegalArgumentException: ERROR: -c has been deprecated for a very long time and is no longer supported, to prepare for reusing it for a different purpos
e in the near future. Please change all uses of -c to -P.
at org.scalatest.tools.ArgsParser$.checkArgsForValidity(ArgsParser.scala:46)
at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:857)
at org.scalatest.tools.Runner$.main(Runner.scala:827)
at org.scalatest.tools.Runner.main(Runner.scala)
基本的にscalatest-のmaven-pluginのではなく、scalatest CLIに-c
を渡していますより正確な、すなわち使用するスレッドの数。
-P10
をMaven経由でスカラーテストプロセスに渡すにはどうすればよいですか?私はMAVEN_OPTS
環境変数またはMaven CLIに直接設定しようとしましたが、取得されませんでした。
私はまた、このようなscalatest-のmaven-pluginの設定を試してみました:
<configuration>
<argLine>-P10</argLine>
</configuration>
が、それはあまりにも失敗したので、このパラメータはJavaプロセスにしていないScalatestに渡されます。