[ 
https://issues.apache.org/jira/browse/SUREFIRE-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16753086#comment-16753086
 ] 

Steinar Bang commented on SUREFIRE-1630:
----------------------------------------

The simplest way to test this behaviour is to:
# [Install sonar locally and start it from a 
console|https://docs.sonarqube.org/7.4/setup/get-started-2-minutes/] (this will 
start a sonar instance listening on port 9000)
# Add a sonar URL to this sonar instance to the maven build command
{noformat}
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar 
-Dsonar.host.url=http://localhost:9000
{noformat}


> sonarqube reports 0% coverage with maven-surefire-plugin versions later than 
> 2.20
> ---------------------------------------------------------------------------------
>
>                 Key: SUREFIRE-1630
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1630
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.20.1, 2.21.0, 2.22.0, 2.22.1
>         Environment: Debian 9.7 "stretch", amd64, openjdk-8 
> 8u181-b13-2~deb9u1, maven 3.3.9-4, JUnit 5.1.0
>            Reporter: Steinar Bang
>            Priority: Major
>
> I create sonar reports with the following command line and no sonar or jacoco 
> config in my POMS:
> {noformat}
> mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar
> {noformat}
> With maven surefire plugin 2.x versions newer than 2.20 the resulting sonar 
> report shows 0% test coverage.
> My workaround to get coverage back, was to downgrade to surefire 2.20.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to