The Welkin Suite Forum

Code Coverage Highlighting Doesn't Match



Code Coverage Highlighting Doesn't Match

  • Please log in to reply

#1
windows version welkinsuite

lryan

    Posted 09 Nov 2017

    After running a test, I refreshed code coverage, then checked coverage on my class and it was 98.7% with 3 lines of code not covered.  When I scroll through the class, every line is green there are no red lines.  So something is out of synch, either the coverage number is wrong or the 3 uncovered lines not shown.  Which one is correct?

    Thanks,

    Lisa



    3 replies to this topic

    #2

    kate.dulko

      Posted 10 Nov 2017

      Hi Lisa,


      Thank you for contacting us with this information.


      May I please clarify with you the next things so that we could find a reason for the issue and way to solve it?

      Here they are:

           1) First of all, I kindly ask you to check if this file has the same Code Coverage data (covered/uncovered lines and coloring) in Developers Console. The reason for my question is that we get all the code coverage directly from Salesforce and this would help us understand if the IDE doesn't handle the returned data properly.

           2) Can you please tell me if you see that there are 3 uncovered lines in a file in the Code Coverage panel in the IDE or you get this value from your Organization?

           3) Is this reproduced for one file or for some/all of your classes with uncovered lines?


      Can you please check if you would see red lines in covering of your class when check covering by test methods - this option is available for you in the top right corner of the code editor in an opened class file.


      Also, you can send us a bug report with the attached log files directly from the IDE so that we could analyze your TWS logs - the option for this in the menu Help -> Report a Bug.



      Looking forward to hearong back from you.

      Thank you,

      Kate


      Kate Dulko
      Customer Relations

      The Welkin Suite

      twitter: @KateDulko
      skype id: d_katerina
      e-mail: kate.dulko@welkinsuite.com

       

        


      #3

      lryan

        Posted 10 Nov 2017

        Hi Kate,

        I restarted TWS, ran the test again and the coverage matched (I got the red lines).  This seems to happen from time-to-time with testing and logs - things get out of synch.  Earlier in the day, I ran a test suite and when I went to the code coverage window and refreshed, the classes I was testing did not even appear in the list.  I ran the test suite again, same issue.  I had to do the same thing, restart TWS, run the test suite again and it seemed to synch up.

        As a software developer I understand how hard it is to fix problems like this that are not consistently repeatable.  The next time something like this happens, I will try to capture the information you have requested so you can figure out what is causing it.

        Thanks,

        Lisa



        #4

        kate.dulko

          Posted 13 Nov 2017

          Hi Lisa,


          Thank you for your response and for your update.


          We will pay our attention to such behavior and will investigate possible reasons for this.

          Any additional information will be very helpful for us, and we very appreciate your collaboration.


          Best Regards,

          Kate


          Kate Dulko
          Customer Relations

          The Welkin Suite

          twitter: @KateDulko
          skype id: d_katerina
          e-mail: kate.dulko@welkinsuite.com

           

            





          Boost Your Productivity. Get Started Today

          Try Free Trial