(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
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
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 ) :
  1. start application
  2. request dump with reset
  3. "do a task"
  4. request dump again and coverage view will show what was executed after reset i.e. by "task"
Recording from EclipseCon France 2017 where this demonstrated in action: https://youtu.be/BoiVrdlxB_M?list=PLZRu6Rvmk66uNscSsWjx9W6LiBSYFghW3&t=899

Blog entry, randomly picked from Google, about this: https://www.tasktop.com/blog/incremental-code-coverage-debugging-tool/


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