최신 버전을 사용하고 있습니다. source code here입니다. 병렬로 내 스위트를 실행하려고 다음과 같은 구성을 사용하여 :Scalatest maven plugin : 오류 : -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>
가 리드를 메이븐 오류 구축 다음
[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 - 받는다는 - 플러그인 대신 scalatest CLI에 -c
전달됩니다 올바른 -P
.. 또는 더 나은 -P10
즉 사용할 스레드 수.
-P10
을 Maven을 통해 Scatest 프로세스에 전달할 수 있습니까? MAVEN_OPTS
환경 변수 또는 Maven CLI에서 직접 설정을 시도했지만 선택되지 않았습니다.
나는이 같은 scalatest - 받는다는 - 플러그인을 구성 시도 : 너무 실패 있도록
는<configuration>
<argLine>-P10</argLine>
</configuration>
그러나이 매개 변수는 Scalatest에 자바 프로세스에 전달되지 않습니다.