Hi guys,

I have a issues when run  cobertura, please help me to fix it.
I have a test file that is covered 100% when i run Junit in eclipse,
but  it just be 50% when i run it by cobertura  without error or failure. A
fter that, i see a function  in middel of this file which make cobertura
fail. I moved it to end of test file and run again. this test file is
covered 100% without error or failure.
I don't how. please help me to clarify cause.

Thank you so much.

Vào Th 4, 24 thg 7, 2019 vào lúc 08:03 Evgeny Mandrikov <
[email protected]> đã viết:

>
>
> On Tuesday, July 23, 2019 at 10:54:58 PM UTC+2, Lin Chen wrote:
>>
>> There was an old similar case.  I am having the same problem in 0.7.5.  I
>> am wondering how the 0.7.6 problem was solved.
>> I
>> have -javaagent:C:/Users/me/lib/org.jacoco.agent-0.7.5.201505241946.jar=[...]
>> in my in IntelliJ VM Options.   When I run I got:
>>
>> Failed to find Premain-Class manifest attribute in
>> C:/Users/me/lib/org.jacoco.agent-0.7.5.201505241946.jar
>> Error occurred during initialization of VM
>> agent library failed to init: instrument
>>
>>  Do I need add the runtime postfix as pointed out in that old case?  Is
>> org.jacoco.agent-NNN.jar and org.jacoco.agent-NNN-runtime.mar the same?
>>
>
> As explained in documentation on page
> https://www.jacoco.org/jacoco/trunk/doc/repo.html
>
> and in https://groups.google.com/d/msg/jacoco/heRn1Hhvq14/FlXo-K27BgAJ
>
> org.jacoco.agent-0.7.5.201505241946-runtime.jar
>
> is the jar of agent with Premain-Class header and exactly this jar should
> be used for java parameter "-javaagent"
>
> org.jacoco.agent-0.7.5.201505241946.jar
>
> is not agent and has no Premain-Class header,
> it is an API to obtain the agent as a resource.
>
> This applies for all JaCoCo versions up to latest released as of today
> 0.8.4, including 0.7.5 and 0.7.6
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jacoco/49919127-9b75-4811-b8fd-d6af9ce04a09%40googlegroups.com
> <https://groups.google.com/d/msgid/jacoco/49919127-9b75-4811-b8fd-d6af9ce04a09%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/CAJeORnnQPPBsfoww6aYxs6t0yqCfSjMy9tAD1zuRp2csfhNHmw%40mail.gmail.com.

Reply via email to