(Eclipse) Can you run code coverage for 'part' of the session?
15 views
Skip to first unread message
leosp...@gmail.com
unread,
Dec 12, 2017, 10:41:22 AM12/12/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JaCoCo and EclEmma Users
Is it possible to 'activate' code coverage, do a task and then 'finish/dump' to see only the code that was run during a timespan?
The reason is that in our code base (SWT Eclipse), there is a lot of code that is ran at start up, so it's sometimes hard to tell which code was ran by a specific event (e.g mouse click).
Evgeny Mandrikov
unread,
Dec 12, 2017, 11:13:36 AM12/12/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JaCoCo and EclEmma Users
"Coverage View" has button "Dump Execution Data" to request coverage of a running application and dropdown list next to this button has option "Reset on Dump" ( http://www.eclemma.org/userdoc/coverageview.html ) :
start application
request dump with reset
"do a task"
request dump again and coverage view will show what was executed after reset i.e. by "task"