The Welkin Suite Forum

Refreshing the Tests list brings in all tests, including managed packages and hides other test.



Refreshing the Tests list brings in all tests, including managed packages and hides other test.

  • Please log in to reply

#1
mac version welkinsuite

gerkeac

    Posted 16 Feb 2018 and edited 20 Feb 2018

    If you are doing Unit Testing in Blaze R10 and refresh the test list it seems to pull in all managed package tests with no way to filter them back out. This also seems to result, at times, in hiding non-managed package tests. At that point I have to create a new solution just to get back to my normal tests list again.



    3 replies to this topic

    #2

    kate.dulko

      Posted 19 Feb 2018

      Hi Gerkeac,


      Thank you for your post.


      When you create a project, TWS parser analyzes all the files and using the code completion functionality we get information about tests that present locally in your project. Exactly this list of tests you can see at the beginning. 

      When you refresh a list of tests from your organization, the IDE gets all the tests: from the org itself and from managed packages, and this is why you can see an extended list of tests.

      We are aware that right now there is no ability to separate tests from an organization and test from managed packages, and we are going to add this filtering in one of the nearest versions of the IDE. Also, we will add showing namespaces for tests from managed packages for easier navigation.


      As for the case, when non-managed packages tests are absent in the list, may I please clarify if you cannot find them using the search filter?


      Thank you,

      Kate



      Kate Dulko
      Customer Relations

      The Welkin Suite

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

       

        


      #3

      gerkeac

        Posted 19 Feb 2018

        Hi Kate,

        Thank you for responding. When I do get the full list, I do also seem to lose the ability to search for the test I want. When I search, my new test is not present. I have tried to reBuild and even deploy back to the Org I am working in. I would then refresh the tests lists and it still won't show. My only option seems to be creating a new solution for the same org at which point I can find the new test.

        Anthony



        #4

        kate.dulko

          Posted 20 Feb 2018 and edited 20 Feb 2018

          Hi Anthony,


          Thank you for your response.


          Right now you can use the next workaround instead of creating a new solution each time after refreshing your tests:

          1. please open the related project folder - you can easily navigate to this folder using the 'Open Folder in File Explorer' command from the context menu of your project in the Solution Explorer);
          2. please find the 'TestCache.xml' file (it could be a hidden file);
          3. delete this file;
          4. re-open your project in TWS - as a result, the IDE will analyze your local files again.


          As for a reason for the issue, this could be related to an empty value of SymbolTable for a test(s) on your organization - in this case, the organization doesn't provide the IDE with an information about this test(s). You can check this the next way:

          1.  please execute the following query in the Developer Console on your org (please also check the “Use Tooling API” there):
          select Id, Name, NamespacePrefix, SymbolTable from ApexClass
          2. please check if you can see the SymbolTable data for classes that are not available in the Run tests wizard after refreshing. 

          If there’s no information for them – you can try executing the “Compile All Classes” action in the org (Setup -> Apex Classes), so Salesforce will refresh the data.

          After this, please check if the issue would be reproduced.


          Looking forward to your response.


          Thank you,

          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