Options

Code Coverage for Dynamics NAV 2013

AdministratorAdministrator Member, Moderator, Administrator Posts: 2,495
edited 2015-02-25 in Download section
Code Coverage NAV 2013 objects
Develped by
-Simon Ejsing

Run page 50020 and click "Start code Coverage" button

http://www.mibuso.com/dlinfo.asp?FileID=1536

Discuss this download here.

Comments

  • Options
    SilverXSilverX Member Posts: 134
    Hi Mohammed,

    good to see These objects finally arriving at mibuso. However, if you "distribute" this download, originally from one of my blog Posts (see the English translation in our German NAV developers blog, scroll down for original download), please leave all Copyright stuff and especially the MS-PL link intact for all contained objects.

    Cheers
    Carsten
    Cheers
    Carsten


    ==> How To Ask Questions The Smart Way

    This post is my own opinion and does not necessarily reflect the opinion or view of my employer.
  • Options
    AdministratorAdministrator Member, Moderator, Administrator Posts: 2,495
    Code Coverage for Dynamics NAV 2013
    This Code Coverage implementation was originally released back in August 2012 on German Microsoft Dynamics NAV Developers Blog, translated), when a Code Coverage front-end was not available for Dynamics NAV 2013.

    In the meantime, a different implementation of Code Coverage is part of the official Application Test Toolset, available on PartnerSource. See http://blogs.msdn.com/b/nav/archive/201 ... -2013.aspx.

    Update 21/06/2013: original version posted with reference of source

    http://www.mibuso.com/dlinfo.asp?FileID=1536

    Discuss this download here.
  • Options
    Johannes_NielsenJohannes_Nielsen Member Posts: 206
    Hi

    So is this equal to what is included in the App. Test Toolkit?
    Best regards / Venlig hilsen
    Johannes Sebastian
    MB7-840,MB7-841
  • Options
    SilverXSilverX Member Posts: 134
    Hi Johannes,

    no, this is an implementation from before we released this together with the Application Test Toolset. So if you like to use the Standard implementation, please download the complete package.

    Cheers
    Carsten
    Cheers
    Carsten


    ==> How To Ask Questions The Smart Way

    This post is my own opinion and does not necessarily reflect the opinion or view of my employer.
  • Options
    jordi79jordi79 Member Posts: 272
    No of hits seems to be missing in the code coverage. Quite pointless, if the executed lines in c/al code is shown without no. of hits. I normally use this in the previous versions to see which line of code is hit, before I use the debugger to dive in deeper.
  • Options
    jordi79jordi79 Member Posts: 272
    Sorry. This version does not have no. of hits per c/al line, but the version in the partnersource seems to have this.
  • Options
    Johannes_NielsenJohannes_Nielsen Member Posts: 206
    This is great

    But I really miss being able to see whether a table is modified or just read.
    Best regards / Venlig hilsen
    Johannes Sebastian
    MB7-840,MB7-841
  • Options
    SilverXSilverX Member Posts: 134
    @jordi79: The No. of Hits is included in the code page. simply add the column. On the main page the No. of Hits is displayed as weight per object in percent.

    @Johannes: Not sure how you would like to see this implemented. This would mean to parse the output, as this Information is not logged in Code Coverage. Maybe, starting with 2013 R2, the Application Profiler fits your needs: http://navappprofiler.codeplex.com/

    Cheers
    Carsten
    Cheers
    Carsten


    ==> How To Ask Questions The Smart Way

    This post is my own opinion and does not necessarily reflect the opinion or view of my employer.
  • Options
    Johannes_NielsenJohannes_Nielsen Member Posts: 206
    SilverX wrote:
    @jordi79: The No. of Hits is included in the code page. simply add the column. On the main page the No. of Hits is displayed as weight per object in percent.

    @Johannes: Not sure how you would like to see this implemented. This would mean to parse the output, as this Information is not logged in Code Coverage. Maybe, starting with 2013 R2, the Application Profiler fits your needs: http://navappprofiler.codeplex.com/

    Cheers
    Carsten

    What I'm trying to do is determine what tables are modified.
    MS has set a limit for 3 tables to write to, when using the Perpetual Limited User License. So I see this as a common task for NAV developers from now on.

    SQL profiler will give me the answer, but I hav'nt been able to set it up properly. Gonna try a 2012 version soon.

    Thanks for pointing me towards NAV App Profiler.
    I've checked it out quick, and found that it 1) Did'nt reveal my Inserts/Delete transactions 2)cuts off the transaction code

    So it's not the Tool for this job, yet, any ways, but very interesting.

    -
    I've modified your Code Coverage to mark any hit lines, that contain MODIFY,DELETE...etc. and thats what i'm using for now.
    Best regards / Venlig hilsen
    Johannes Sebastian
    MB7-840,MB7-841
  • Options
    tinoruijstinoruijs Member Posts: 1,226
    Great to have this back. =D>

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • Options
    frischfrisch Member Posts: 20
    Nice to have this, but which colour is which?

    2hmiof6.png
  • Options
    tinoruijstinoruijs Member Posts: 1,226
    frisch wrote:
    Nice to have this, but which colour is which?

    2hmiof6.png

    Blue is for function-names and orange for normal lines.
    When a line is black, the line has been hit.
    I adjusted the code coverage page and added all other fields.

    Tino Ruijs
    Microsoft Dynamics NAV specialist
  • Options
    gianpgianp Member Posts: 36
    Hi all,
    I download and use many times the tool for Code Coverage in NAV version 2013 whit much satisfacion results!
    I tried to import and use the same object's in a NAV 2013 R2 NAV version, but I not be able to use the tool beacause when I run the page I received this error:
    "you do not have the following permissions on page code coverage execute. Page view - code coverage must close";

    when I tried to add the permission to table Code Coverage in the page I received this error:
    "You do not have permission to read the Code Coverage table".

    Can someone give me some help, please?

    Thank yuo very much.
    Best regards.
    Gianp.
  • Options
    SilverXSilverX Member Posts: 134
    Hi Gianp,

    I assume you are using the/a demo license or at least a license which does not cover Pages 50020/50021. Please make sure you are using a proper license file.
    Let me know if you need further assistance.
    Cheers
    Carsten


    ==> How To Ask Questions The Smart Way

    This post is my own opinion and does not necessarily reflect the opinion or view of my employer.
  • Options
    gianpgianp Member Posts: 36
    The problem was the license.
    Thanks for suggestion!!!
    Code Coverage tool run good in the NAV 2013 R2 also =D>
    Best regards.
    Gianp.
Sign In or Register to comment.