You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/02/16 13:32:19 UTC

[GitHub] [pulsar] liruixl opened a new issue #14321: Unit Test, jacoco report is not be created

liruixl opened a new issue #14321:
URL: https://github.com/apache/pulsar/issues/14321


   To run `mvn install -Pcore-modules,-main -Dmaven.skip.test=false`;
   But no one jacoco report was not created, eg:(target/site/index.html). Jacoco plugins doesn't seem to be running.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari edited a comment on issue #14321: Unit Test, jacoco report is not be created

Posted by GitBox <gi...@apache.org>.
lhotari edited a comment on issue #14321:
URL: https://github.com/apache/pulsar/issues/14321#issuecomment-1044057021


   > I have got the coverage data for unit test, exec file can be created in other modules.
   
   @liruixl I believe @nicoloboschi is planning to contribute improvements to code coverage reporting so that we'd get automated reports for all GitHub PRs and the results would be presented using https://codecov.io . 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] nicoloboschi commented on issue #14321: Unit Test, jacoco report is not be created

Posted by GitBox <gi...@apache.org>.
nicoloboschi commented on issue #14321:
URL: https://github.com/apache/pulsar/issues/14321#issuecomment-1041501164


   @liruixl you need to use the `coverage` profile.
   
   `mvn verify  -Pmain,coverage`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] liruixl edited a comment on issue #14321: Unit Test, jacoco report is not be created

Posted by GitBox <gi...@apache.org>.
liruixl edited a comment on issue #14321:
URL: https://github.com/apache/pulsar/issues/14321#issuecomment-1042545751


   @nicoloboschi @sijie , It seems to work,relevant log output:
   
   ...
   INFO] 
   [INFO] ----------------------< org.apache.pulsar:pulsar >----------------------
   [INFO] Building Pulsar 2.10.0-SNAPSHOT                                    [2/2]
   [INFO] --------------------------------[ pom ]---------------------------------
   [INFO] 
   [INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ pulsar ---
   [INFO] 
   [INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven) @ pulsar ---
   [INFO] 
   [INFO] --- directory-maven-plugin:1.0:directory-of (directories) @ pulsar ---
   [INFO] Directory of org.apache.pulsar:pulsar set to: /Users/lirui40/Code/apache-pulsar/pulsar
   [INFO] 
   [INFO] --- jacoco-maven-plugin:0.8.7:prepare-agent (pre-unit-test) @ pulsar ---
   [INFO] testJacocoAgentArgument set to -javaagent:/Users/lirui40/.m2/repository/org/jacoco/org.jacoco.agent/0.8.7/org.jacoco.agent-0.8.7-runtime.jar=destfile=/Users/lirui40/Code/apache-pulsar/pulsar/target/jacoco.exec
   [INFO] 
   [INFO] --- maven-assembly-plugin:3.3.0:single (source-release-assembly-tar-gz) @ pulsar ---
   [INFO] Assemblies have been skipped per configuration of the skipAssembly parameter.
   [INFO] 
   [INFO] --- maven-remote-resources-plugin:1.7.0:process (process-resource-bundles) @ pulsar ---
   [INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
   [INFO] Copying 3 resources from 1 bundle.
   [INFO] 
   [INFO] --- jacoco-maven-plugin:0.8.7:report (post-test) @ pulsar ---
   [INFO] Skipping JaCoCo execution due to missing execution data file.
   [INFO] 
   [INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @ pulsar ---
   [INFO] No site descriptor found: nothing to attach.
   [INFO] 
   [INFO] --- license-maven-plugin:4.0.rc2:check (default) @ pulsar ---
   [INFO] Checking licenses...
   ...
   
   But this line `Skipping JaCoCo execution due to missing execution data file.`  troubles me.
   
   ---
   For a quick test, i modify the profile `core-moudles` in pom.xml, only keep one modules(buildtools):
   ```xml
   <profile>
         <id>core-modules</id>
         <modules>
           <module>buildtools</module>
         </modules>
         ...
   </profile>
   ```
   After that, i run `verify -Pcore-modules,coverage,-main`,  jacoco works, but why it missing exec file?
   
   Go futher,  I just saw that jacoco works in [2/2] step( Building Pulsar 2.10.0-SNAPSHOT            [2/2])
   does not work in [1/2] step(Building Pulsar Build Tools 2.10.0-SNAPSHOT          [1/2])
   
   I think the step [2/2] does not hava test lifecycle so it missing exec data file. But the step [1/1] has test,why jacoco plugin does not work.
   
    I’am java beginner,  look forward to everyone reply!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] liruixl commented on issue #14321: Unit Test, jacoco report is not be created

Posted by GitBox <gi...@apache.org>.
liruixl commented on issue #14321:
URL: https://github.com/apache/pulsar/issues/14321#issuecomment-1043999611


   I have got the coverage data for unit test, exec file can be created in other modules.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] liruixl commented on issue #14321: Unit Test, jacoco report is not be created

Posted by GitBox <gi...@apache.org>.
liruixl commented on issue #14321:
URL: https://github.com/apache/pulsar/issues/14321#issuecomment-1042545751


   @nicoloboschi @sijie , It seems to work,relevant log output:
   
   ...
   INFO] 
   [INFO] ----------------------< org.apache.pulsar:pulsar >----------------------
   [INFO] Building Pulsar 2.10.0-SNAPSHOT                                    [2/2]
   [INFO] --------------------------------[ pom ]---------------------------------
   [INFO] 
   [INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven-version) @ pulsar ---
   [INFO] 
   [INFO] --- maven-enforcer-plugin:3.0.0-M3:enforce (enforce-maven) @ pulsar ---
   [INFO] 
   [INFO] --- directory-maven-plugin:1.0:directory-of (directories) @ pulsar ---
   [INFO] Directory of org.apache.pulsar:pulsar set to: /Users/lirui40/Code/apache-pulsar/pulsar
   [INFO] 
   [INFO] --- jacoco-maven-plugin:0.8.7:prepare-agent (pre-unit-test) @ pulsar ---
   [INFO] testJacocoAgentArgument set to -javaagent:/Users/lirui40/.m2/repository/org/jacoco/org.jacoco.agent/0.8.7/org.jacoco.agent-0.8.7-runtime.jar=destfile=/Users/lirui40/Code/apache-pulsar/pulsar/target/jacoco.exec
   [INFO] 
   [INFO] --- maven-assembly-plugin:3.3.0:single (source-release-assembly-tar-gz) @ pulsar ---
   [INFO] Assemblies have been skipped per configuration of the skipAssembly parameter.
   [INFO] 
   [INFO] --- maven-remote-resources-plugin:1.7.0:process (process-resource-bundles) @ pulsar ---
   [INFO] Preparing remote bundle org.apache:apache-jar-resource-bundle:1.4
   [INFO] Copying 3 resources from 1 bundle.
   [INFO] 
   [INFO] --- jacoco-maven-plugin:0.8.7:report (post-test) @ pulsar ---
   [INFO] Skipping JaCoCo execution due to missing execution data file.
   [INFO] 
   [INFO] --- maven-site-plugin:3.7.1:attach-descriptor (attach-descriptor) @ pulsar ---
   [INFO] No site descriptor found: nothing to attach.
   [INFO] 
   [INFO] --- license-maven-plugin:4.0.rc2:check (default) @ pulsar ---
   [INFO] Checking licenses...
   ...
   
   But this line `Skipping JaCoCo execution due to missing execution data file.`  troubles me.
   
   ---
   For a quick test, i modify the profile `core-moudles` in pom.xml, only keep one modules(buildtools):
   `xml
   <profile>
         <id>core-modules</id>
         <modules>
           <module>buildtools</module>
         </modules>
         ...
   </profile>
   `
   After that, i run `verify -Pcore-modules,coverage,-main`,  jacoco works, but why it missing exec file?
   
   Go futher,  I just saw that jacoco works in [2/2] step( Building Pulsar 2.10.0-SNAPSHOT            [2/2])
   does not work in [1/2] step(Building Pulsar Build Tools 2.10.0-SNAPSHOT          [1/2])
   
   I think the step [2/2] does not hava test lifecycle so it missing exec data file. But the step [1/1] has test,why jacoco plugin does not work.
   
    I’am java beginner,  look forward to everyone reply!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] liruixl closed issue #14321: Unit Test, jacoco report is not be created

Posted by GitBox <gi...@apache.org>.
liruixl closed issue #14321:
URL: https://github.com/apache/pulsar/issues/14321


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #14321: Unit Test, jacoco report is not be created

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #14321:
URL: https://github.com/apache/pulsar/issues/14321#issuecomment-1044057021


   > I have got the coverage data for unit test, exec file can be created in other modules.
   
   I believe @nicoloboschi is planning to contribute improvements to code coverage reporting so that we'd get automated reports for all GitHub PRs and the results would be presented using https://codecov.io . 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] nicoloboschi edited a comment on issue #14321: Unit Test, jacoco report is not be created

Posted by GitBox <gi...@apache.org>.
nicoloboschi edited a comment on issue #14321:
URL: https://github.com/apache/pulsar/issues/14321#issuecomment-1041501164


   @liruixl you have to use the `coverage` profile.
   
   `mvn verify  -Pmain,coverage`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org