Uwe Raabe 2057 Posted November 7, 2018 I have just uploaded the sources for the Code Coverage Plugin shown during my session at EKON 22 on Monday. Besides its functionality it may also give some guidance on writing IDE plugins in general. https://bitbucket.org/uweraabe/codecoveragemagician Tested only on Delphi 10.2.3 Tokyo! 4 4 Share this post Link to post
bernau 5 Posted November 7, 2018 I didn't visit the ECON. But everything, that has to do with IDE-Plugins, is very interesting for me. Is there any description available? What is the function of the Code Coverage Plugin? Do you have Screenshots? 1 Share this post Link to post
Uwe Raabe 2057 Posted November 7, 2018 3 hours ago, bernau said: Is there any description available? What is the function of the Code Coverage Plugin? Do you have Screenshots? I will fill up these gaps as soon as I find some time. Share this post Link to post
Der schöne Günther 316 Posted November 21, 2018 Just tried it out, thank you so much 😍 Share this post Link to post
Alberto Paganini 3 Posted November 25, 2018 (edited) Hi Uwe, Does it work for XE2 ? Edited November 25, 2018 by Alberto Paganini Share this post Link to post
Uwe Raabe 2057 Posted November 25, 2018 1 hour ago, Alberto Paganini said: Does it work for XE2 ? Unfortunately not. It uses some ToolsAPI interfaces only available in later versions. 1 Share this post Link to post
John Kouraklis 94 Posted December 21, 2018 @Uwe Raabe Nice plug-in. Thanks for the work. Quick Q: How do I enable code coverage for all the methods? Looks like I have to visit each method and enable CCM Share this post Link to post
Uwe Raabe 2057 Posted December 21, 2018 6 hours ago, John Kouraklis said: How do I enable code coverage for all the methods? Looks like I have to visit each method and enable CCM Unfortunately, yes! Currently that is the only way to do that. I am aware that there is plenty of room for improvement in this plugin. 1 Share this post Link to post
John Kouraklis 94 Posted December 21, 2018 @Uwe Raabe Yes, many opportunities but it is good foundation. BTW, I could not clone the repo cause SourceTree was not recognising it as avalid git/hg repo. I only downloaded the files. I am not sure if it is from your side or others have experienced the same Share this post Link to post
Uwe Raabe 2057 Posted December 21, 2018 I am not using SourceTree, so I cannot test. TortoiseHG has no problems cloning the repo. Share this post Link to post
Jim McKeeth 104 Posted October 19, 2021 The BitBucket link is dead and I don't see any repositories listed under your profile. Did it move to GitHub, GitLab, or get merged into a different one of your amazing plugins? Thanks! Share this post Link to post
Uwe Raabe 2057 Posted October 19, 2021 (edited) @Jim McKeeth As it was a Mercurial repo it went down the drain when Bitbucket dropped Mercurial support. It seems I missed to convert it to Git, but I will see what can be done timely to make it available on GitHub again. Edited October 19, 2021 by Uwe Raabe 3 Share this post Link to post
Uwe Raabe 2057 Posted October 20, 2021 @Jim McKeeth Here it is: Delphi Code Coverage Plugin 4 2 Share this post Link to post
Attila Kovacs 629 Posted October 20, 2021 Why Tokyo is the first supported IDE? Is this based on some new OTA? Share this post Link to post
Jim McKeeth 104 Posted October 20, 2021 On 11/25/2018 at 7:30 AM, Uwe Raabe said: Unfortunately not. It uses some ToolsAPI interfaces only available in later versions. @Attila Kovacs Share this post Link to post
Berocoder 14 Posted October 21, 2021 (edited) 6 hours ago, Uwe Raabe said: @Jim McKeeth Here it is: Delphi Code Coverage Plugin Great, will try it now [EDIT] I tried to clone the repo, compiled it and install. I got this error --------------------------- CodeCoverage - Delphi 10.4 - Welcome Page [Built] --------------------------- Registration procedure, Codecoverage@Main.Register in package C:\Attracs\DelphiCodeCoveragePlugin\Packages\Delphi 10.4 Sydney\CodeCoverage270.bpl raised exception class EAbstractError: Abstract Error. Any clue ? /Roland Edited October 21, 2021 by Berocoder Share this post Link to post
Uwe Raabe 2057 Posted October 21, 2021 11 hours ago, Attila Kovacs said: Why Tokyo is the first supported IDE? Is this based on some new OTA? Simply because I started with Tokyo and updated to newer versions only. I will see how far back it can work without too much of a hassle. 1 Share this post Link to post
Uwe Raabe 2057 Posted October 21, 2021 4 hours ago, Berocoder said: Any clue ? I missed to push a commit. Should work now with the latest change. 1 Share this post Link to post
Uwe Raabe 2057 Posted October 21, 2021 There seem to be problems with the toolbar buttons in all Delphi versions except Delphi 11. In Delph i 10.4.2 there is even a crash when installing the plugin from the IDE. I will try to track that down as soon as my schedules allow. 1 Share this post Link to post
Berocoder 14 Posted October 21, 2021 Yes the Toolbar is not working in Sydney. But can still use hotkey so no big deal. I have to manually mark each method to enable code coverage. Is it possible to just enable all code in a project for code coverage? My project have about 5 mloc with thousands of methods. It would be handy 😊 Share this post Link to post
Uwe Raabe 2057 Posted October 21, 2021 2 hours ago, Berocoder said: It would be handy I doubt that. The code coverage is done by setting a special breakpoint in each code line. That might get a bit slow with 5 million breakpoints. I recommend to do code coverage on one or very few methods at once. Share this post Link to post
Berocoder 14 Posted October 22, 2021 Ah ok. I am sure it will be slow. I have been looking for a tool that cover a whole project for Code coverage. There is https://github.com/magicmonty/delphi-code-coverage. I had a memory there was some kind of problem last time I tried. Maybe I should look again. But still impressive work with your plugin! Regards Roland Share this post Link to post
David Heffernan 2345 Posted October 22, 2021 Does vtune do code coverage? Share this post Link to post
Berocoder 14 Posted October 22, 2021 Does it understand Delphi source ? URL ? Share this post Link to post