How do we do code coverage of Java applets

31 views
Skip to first unread message

dhiraj...@gmail.com

unread,
Mar 1, 2016, 11:55:31 PM3/1/16
to JaCoCo and EclEmma Users
Hi all,

Is there a possible way of doing code coverage of Java Applets?
Any pointers or directions to a possible workaround or solution would be great.

Regards
Dhiraj Madan

Marc Hoffmann

unread,
Mar 2, 2016, 8:17:00 AM3/2/16
to jac...@googlegroups.com
Hi,

I haven't tried this myself but the appletviewer allows to give JVM
options with the -J parameter:


https://docs.oracle.com/javase/7/docs/technotes/tools/windows/appletviewer.html

This way you might be able to configure the JaCoCo agent for your
applet:

http://www.eclemma.org/jacoco/trunk/doc/agent.html

I don't think it is possible to run JaCoCo within a actual web browser
due to the security restrictions.

Regards,
-marc
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages