How do I use tradefed or atest jar host unit test with jacoco in AOSP source code environment?

100 views
Skip to first unread message

won...@gmail.com

unread,
Dec 26, 2019, 1:39:41 AM12/26/19
to JaCoCo and EclEmma Users

I want to write some unit test case to test framework,and need coverage report。

what do i need to do?

Marc Hoffmann

unread,
Dec 26, 2019, 2:28:02 AM12/26/19
to jac...@googlegroups.com
Read the documentation which includes working examples: https://www.jacoco.org/jacoco/trunk/doc/index.html


On 26. Dec 2019, at 07:39, won...@gmail.com wrote:


I want to write some unit test case to test framework,and need coverage report。

what do i need to do?

--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/67aa5383-d726-4365-8298-c2052a708dff%40googlegroups.com.

won...@gmail.com

unread,
Dec 26, 2019, 3:44:54 AM12/26/19
to JaCoCo and EclEmma Users
Thank you for your help.

But i can't find any example for this situation.Please give me some more details.

Thank you very much.


在 2019年12月26日星期四 UTC+8下午3:28:02,Marc R. Hoffmann写道:
Read the documentation which includes working examples: https://www.jacoco.org/jacoco/trunk/doc/index.html


On 26. Dec 2019, at 07:39, won...@gmail.com wrote:


I want to write some unit test case to test framework,and need coverage report。

what do i need to do?

--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jac...@googlegroups.com.

Marc Hoffmann

unread,
Dec 27, 2019, 1:52:55 AM12/27/19
to jac...@googlegroups.com
Hi,

we have no example for this specific scenario. I recommend to setup your build/test without JaCoCo first. Once this is running as expected you add JaCoCo as described in our documentation.

If you have any problems with adding JaCoCo please share a executable reproducer (e.g. GitHub repo) where we can have a look.

Regards,-marc 


To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/8dde73fc-c0f2-4292-ab61-67f899b78900%40googlegroups.com.

won...@gmail.com

unread,
Jan 7, 2020, 8:35:55 PM1/7/20
to JaCoCo and EclEmma Users
Thank you.
I abandon use atest or tredefed to build coverage report。
I use ant to build jacoco report。

在 2019年12月27日星期五 UTC+8下午2:52:55,Marc R. Hoffmann写道:
Hi,

we have no example for this specific scenario. I recommend to setup your build/test without JaCoCo first. Once this is running as expected you add JaCoCo as described in our documentation.

If you have any problems with adding JaCoCo please share a executable reproducer (e.g. GitHub repo) where we can have a look.

Regards,-marc 

On 26. Dec 2019, at 09:44, won...@gmail.com wrote:

Thank you for your help.

But i can't find any example for this situation.Please give me some more details.

Thank you very much.


在 2019年12月26日星期四 UTC+8下午3:28:02,Marc R. Hoffmann写道:
Read the documentation which includes working examples: https://www.jacoco.org/jacoco/trunk/doc/index.html


On 26. Dec 2019, at 07:39, won...@gmail.com wrote:


I want to write some unit test case to test framework,and need coverage report。

what do i need to do?

--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/67aa5383-d726-4365-8298-c2052a708dff%40googlegroups.com.


--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jac...@googlegroups.com.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages