나는 다음 소나 개미의 목표는 정의 : 나는 '개미 수중 음파 탐지기'를 실행하고 브라우저에서 수중 음파 탐지기를 가져 오면소나가 테스트 통계를 내보내는 방법?
<target name='sonar'>
<property name='sonar.sources' value='${src.dir}'/>
<property name='sonar.tests' value='${test.src.dir}'/>
<property name='sonar.binaries' value='build/classes'/>
<path id='jars'>
<fileset dir='${env.JAVA_HOME}/jre/lib' includes='*.jar'/>
<fileset dir='build/lib/test' includes='*.jar'/>
</path>
<pathconvert property='sonar.libraries' refid='jars' pathsep=','/>
<exec executable='p4' outputproperty='p4.P4CLIENT'>
<arg value='set'/>
<arg value='P4CLIENT'/>
</exec>
<propertyregex
property='p4client'
input='${p4.P4CLIENT}'
regexp='P4CLIENT=([^ ]+) *.*'
replace='\1'/>
<propertyregex
property='sonar.timestamp'
input='${build.time}'
regexp='_'
replace='T'/>
<sonar:sonar key='com.netflix:${module.name}' version='${p4client}@${sonar.timestamp}' xmlns:sonar='antlib:org.sonar.ant'/>
<property name='sonar.dynamicAnalysis' value='reuseReports'/>
<property name='sonar.emma.reportPath' value='${coverage.dir}'/>
</target>
, 내가 src 디렉토리의 클래스에 대한 정보를 볼 수 있지만 물건에 대해 아무것도 테스트 디렉토리.
sonar.sources에 $ {test.src.dir}을 추가하고 sonar.tests를 설정하지 않은 경우 테스트 클래스에 대한 정보가 표시되지만 Sonar는 여전히 0 테스트 성공을보고합니다.
어떻게하면 각 테스트 방법과 통계로 드릴 수 있습니까?
안녕하세요, [비슷한 문제가] 안녕하세요 (http://stackoverflow.com/questions/21267948/sonarqube-test-coverage-report-for-android-built-with-ant)하지만 꽤 동일하지 않습니다. .emma 파일을 어떻게 가져 왔니? – JaKXz
실제로 Sonar 사용을 중단했으며 자체 빌드 데이터 저장소를 구축 할 예정입니다. –