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:49:56 UTC

[GitHub] [pulsar] liruixl opened a new issue #14322: How to create coverage report by jacoco when run unit test?

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


   ### What issue do you find in Pulsar docs?
   
   How to create coverage report by jacoco when run unit test? 
   when I run `mvn test`, nothing was be created. It should be created by jacoco at target/site/index.html.
   Refer to:https://www.eclemma.org/jacoco/trunk/doc/maven.html
   
   ### What is your suggestion?
   
   add explanations about unit test and coverage report.
   
   ### Do you have any references?
   
   Jacoco doc: https://www.eclemma.org/jacoco/trunk/doc/maven.html
   
   ### Would you like to fix this issue?
   
   I have researched my question, but the coverage report is still not created, I dont know what the problem is.
   
   ### Note
   
   - [X] I have researched my question.


-- 
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 #14322: How to create coverage report by jacoco when run unit test?

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


   Passing `-Pmain,coverage` can be used on the maven command line. Jacoco configuration is part of the `coverage` maven profile. @nicoloboschi is working on a contribution to enable code coverage and collect and report the coverage reports using 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] liruixl commented on issue #14322: How to create coverage report by jacoco when run unit test?

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


   Oh, sorry. It is not. I created a test issue: #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] liruixl closed issue #14322: How to create coverage report by jacoco when run unit test?

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


   


-- 
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] Anonymitaet commented on issue #14322: How to create coverage report by jacoco when run unit test?

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


   Seems that this is not a doc issue.
   
   Hi @lhotari seems that you've handled related PRs recently, could you please give some guidance on this issue? Thanks


-- 
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] Anonymitaet commented on issue #14322: How to create coverage report by jacoco when run unit test?

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


   @liruixl is this an issue related to doc?


-- 
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 #14322: How to create coverage report by jacoco when run unit test?

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


   thanks,  I have got the coverage data for unit tests. Now I know  how to use maven profile, it need activation!


-- 
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 #14322: How to create coverage report by jacoco when run unit test?

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


   Currently it's possible to get coverage data for unit tests. Later on there are plans to add support for collecting coverage also for the integration tests which run Pulsar components with Testcontainers in docker.


-- 
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