Microsoft Visual Studio Team Services에서 연속 통합 서버를 설정했습니다. 내 코드를 빌드하고 scalatest을 통해 테스트를 실행할 수 있습니다.Maven의 Scalatest : JUnit 결과
그러나 결과를 JUnit 형식으로 출력하는 방법을 알 수 없습니다. 나는 SBT를 사용하는 사람들에게 많은 결과를 보았지만 누구도 사용하지 않았다. Maven.
구성에서 'junitxml'태그가 올바른 파일을 생성합니까? 이것은 Microsoft 문제라는 것을 의미합니다.
<plugin>
<groupId>org.scalatest</groupId>
<artifactId>scalatest-maven-plugin</artifactId>
<version>${maven.plugin.scalatest.version}</version>
<configuration>
<reportsDirectory>${project.build.directory}/scalatest-reports</reportsDirectory>
<junitxml>jUnitResults</junitxml>
<filereports>SparkTestSuite.txt</filereports>
</configuration>
<executions>
<execution>
<id>test</id>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
</plugin>
업데이트 1 :
잘못된 결과 파일을
내 scalatest 플러그인은 현재와 같은를 찾습니다. 'C : /aa/s/common/target/scalatest-reports/jUnitResults/TEST-org.scalatest.tools.DiscoverySuite-2d5739be-0653-4b9d-a8ed-41b6d0f82e48.xml'파일의 결과 형식이 올바른지 확인하십시오. 'JUnit'테스트 결과 형식과 일치합니다.
빌드 정의의 세부 단계는 무엇입니까? –
해당 XML 파일의 세부 내용은 무엇이며 일반 JUnit 테스트 결과와 다른 점은 무엇입니까? –
나는 그것을 이해할 수 있었다고 생각한다. 내 문제의 대부분은 VSTS에 대한 나의 이해 부족을 다루었습니다. 내가 어떻게 계산했는지에 대한 업데이트를 게시 할 것이다. – terminatur