The Welkin Suite Forum

[Solved] Add code coverage percentage



Add code coverage percentage

  • Please log in to reply

#1

robert.j.taggart.jr

    Posted 12 Aug 2015 and edited 20 Jan 2018

    I would like to see the code coverage percentage in the test results.  Also would like to see what is covered in the code as well.  Just like the developer console in SFDC. 

    [attachment=25:2015-08-12_7-22-59.jpg]



    8 replies to this topic

    #2

    vlgubanovich

      Posted 12 Aug 2015

      Hi Robert,


      You should be able to view code coverage data using Code Coverage panel. You can enable it from main menu - "View -> Code coverage".

      In that panel you'll have numeric values displayed. You can also enable visual highlighting of covered/uncovered lines by pressing "Show Coloring" button in "Code Coverage" panel.


      Please let me know if this helps.


      Thanks,

      Vladimir


      Vladimir Gubanovich
      Head of Product
       
      The Welkin Suite
      skype id: vladimir.gubanovich
      e-mail: vladimir.gubanovich@welkinsuite.com


      #3

      ikljaic

        Posted 12 Aug 2015

        Well, I tested this across multiple orgs, and never managed to get it to work



        #4

        vlgubanovich

          Posted 13 Aug 2015

          Hi ikljaic,


          Can you please describe what exactly happened all the times you've tried?


          Thanks,

          Vladimir


          Vladimir Gubanovich
          Head of Product
           
          The Welkin Suite
          skype id: vladimir.gubanovich
          e-mail: vladimir.gubanovich@welkinsuite.com


          #5

          ikljaic

            Posted 13 Aug 2015

            That's the deal. absolutely nothing. i click refresh to from server, it starts working and nothing happens. afer a minute or two everything is the way it was before. I toggle on the Show coloring button, but again, nothing happens. Sometimes I get a warning on the opened tab with a message stating that the coloring is not exact, but that's it.



            #6

            vlgubanovich

              Posted 13 Aug 2015

              Hi ikljaic,


              Here our ideas about the issue you're experiencing:

              1. Very obvious thing, but we need to check. Once code coverage is retrieved list in the panel is not expanded automatically and expand mark is pretty small. As we understand - there's even nothing to expand in your case. Is this correct?
              2. Nothing will be displayed in the list if Salesforce returns us exception or our code throws an exception due to an unexpected response. In this case this will be reflected in the ActivityLog.
              3. Nothing will be displayed in the list if Salesforce returns us no data - this again will be reflected in the ActivityLog.
              4. Salesforce can send us (it happens sometimes) data with zeroes only.
              5. Another (more probable) option is "Aggregated Code Coverage Statistics" enabled in your org (https://developer.salesforce.com/blogs/developer-relations/2012/11/how-code-coverage-works.html).

              Based on this I'd want to ask you to do the following:

              1. Check "Store Only Aggregated Code Coverage†option status. You can do this in Salesforce org - "Setup -> Develop -> Apex Test Execution -> Click 'Options...' button". Please let us know if this option is enabled or disabled.
              2. Check if you can get Code Coverage information in the Developer Console.
              3. Run unit tests from TWS, Developer Console or Setup. Click "Refresh" in the Code Coverage panel and wait for a minute or two. After that open "Help -> Report a bug", ensure that "Attach the ActivityLog file" is checked and send us the report.

              But before doing step 3 please ensure that TWS has updated to the 0.21.14 version - there was an issue with Feedback forms not working with HTTPS website. You can force updating by closing all instances of TWS and restarting "The Welkin Suite Auto-Updater" Windows service.


              Thanks,

              Vladimir


              Vladimir Gubanovich
              Head of Product
               
              The Welkin Suite
              skype id: vladimir.gubanovich
              e-mail: vladimir.gubanovich@welkinsuite.com


              #7

              ikljaic

                Posted 14 Aug 2015

                1. Correct. Nothing to expand

                2. where can I find the activity log


                Answers

                1. unchecked

                2. yes I can from ApexCodeCoverageAggregate

                3. I will



                #8

                vlgubanovich

                  Posted 09 Sep 2015

                  Hi ikljaic,


                  One more thing to check - are all your orgs huge? We're hitting 20k characters limit in SOQL requests for code coverage results and fix for this issue will be released tomorrow. I assume that this might be the case.


                  Thanks,

                  Vladimir


                  Vladimir Gubanovich
                  Head of Product
                   
                  The Welkin Suite
                  skype id: vladimir.gubanovich
                  e-mail: vladimir.gubanovich@welkinsuite.com


                  #9

                  vlgubanovich

                    Posted 23 Sep 2015

                    Hi ikljaic,


                    On September 13th we've released another part of this fix for code coverage issue.

                    Is the issue resolved for you with versions 0.22.12.4 or 0.22.13.4?


                    If no, can you please send us a log file after trying to refresh code coverage information.



                    Thanks,

                    Vladimir


                    Vladimir Gubanovich
                    Head of Product
                     
                    The Welkin Suite
                    skype id: vladimir.gubanovich
                    e-mail: vladimir.gubanovich@welkinsuite.com


                    Boost Your Productivity. Get Started Today

                    Try Free Trial