0
Maven을 사용하여 스펙 2 사양의 사양 계획을 출력하는 데 문제가 있습니다. 나는, 예를 들어,Maven을 사용하여 specs2의 사양 계획을 생성 하시겠습니까?
class FooTest extends SpecificationWithJUnit{
"foo" should {
"bar" in { "bat" must_== "bat" }
}
을 그리고 출력을 갖고 싶어,
foo should
+ bar
(...success messages...)
을하지만 내가 할 수있는 모든이의 JUnit 스타일
Running FooTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.797 sec
입니다 그리고 내 확실한 플러그인은 다음과 같이 구성되어 :
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.7.2</version>
<configuration>
<useFile>true</useFile>
<disableXmlReport>true</disableXmlReport>
<includes>
<include>**/*Test.*</include>
<include>**/*Suite.*</include>
</includes>
</configuration>
</plugin>
재산이 있습니까? y 원하는 출력을 생성하도록 설정할 수 있습니까?
두 번째 항목이 중대하다 (예를 들어, 출력에서 ASCII 색상을 제거하기 위해)
-Dspecs2.commandline=nocolor
로 추가 명령 줄 인수를 전달할 수 있습니다! 이 기능을 이용해 주셔서 감사합니다. – Nicolas나는 후자를 사용하고 그것은 매력처럼 일했다!. Tx - Larry –