The Welkin Suite Forum

Test Class not showing in available test classes to run



Test Class not showing in available test classes to run

  • Please log in to reply

#1
mac version welkinsuite

colton.larocca

    Posted 21 Mar 2018 and edited 11 Jun 2018

    so when i click projcect-> run tests -> my test class isnt shown. Refreshing list and pulling from the sandbox doesnt resolve either. 


    so far my work around has been to create a new project each time this occurs. I submitted a bug report on it as well with log.



    7 replies to this topic

    #2

    kate.dulko

      Posted 21 Mar 2018

      Hi Colton,


      Thank you for your post and for the bug report.


      At the beginning, the IDE gets all the tests from a current project using the code completion functionality: when you create a project, TWS parse all files and gather the necessary information. In a frame of this, we get all the tests that are present in your project. For example, when you open the Run Tests wizard and navigate to an 'Information' icon, you will see if a list of tests is retrieved from a server or locally.

      So looks like that you can see all your tests when the IDE uses local data for retrieving tests.


      When you click the 'Refresh' button, the IDE sends a request to your Salesforce organization and get a list of tests from the organization. There could be a case when org doesn't provide the IDE with all the tests. To check this, please follow the next steps:

      1. please execute the following query in the Developer Console on your organization (please also check the “Use Tooling API” there):
        select Id, Name, NamespacePrefix, SymbolTable from ApexClass;
      2. check if you can see the SymbolTable data for classes that are not available in the list during the deployment;
      3. 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 in TWS.


      Also, we are aware of the issue when TWS doesn't get all the tests from an org if there are more then 2 thousand tests. 

      We are going to solve this issue in one of the nearest versions of the IDE.


      For both cases, as an additional workaround instead of recreating a project, you can delete a ' TestCache.xml' file in a project folder. In this case, the IDE will parse files again and you will see a list of tests that are present locally.

      Hope this would help.


      Thank you,

      Kate


      Kate Dulko
      Customer Relations

      The Welkin Suite

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

       

        


      #3

      clarkh

        Posted 19 Apr 2018

        Hello Kate, 


        I am having this same issue. There are some new tests that I have written and would like to create a test suite for but they are not showing up in my list of available tests. 


        I have executed the query that you mentioned and all the classes I created are found and have associated sybol tables. 


        I cannot find this TestCache.xml file in my project folder, where in the hierarchy can this be found?


        Thanks,

        Clark 



        #4

        kate.dulko

          Posted 20 Apr 2018

          Hi Clark,


          Thank you for your post.


          The file can be located in a project folder only since TWS stores all the data related to a project there, but this file can be hidden.

          Please let me know if you can find it as a hidden file.


          Also, can you please tell me if you have more than 2 thousand tests on your organization? 


          Thank you,

          Kate


          Kate Dulko
          Customer Relations

          The Welkin Suite

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

           

            


          #5

          bvanburen

            Posted 28 Apr 2018

            from the solution explorer project, right click and Open Folder in File  explorer.

            delete the test cache and test results files

            Now you can see the missing tests in the tool


            Bruce




            #6

            kate.dulko

              Posted 30 Apr 2018

              Hi guys.


              Yes, Bruce has pointed to the right solution.

              If you are using the Mac version of the IDE - everything is the same except the name of the command in the Solution Explorer: in TWS Blaze please use the 'Reveal in Finder' one that means the same as the 'Open Folder in File Explorer'.


              Please let me know if you would have any additional questions.


              Thank you,

              Kate


              Kate Dulko
              Customer Relations

              The Welkin Suite

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

               

                

              • 1

              #7

              michal.kapar

                Posted 06 Jun 2018

                Hi Kate,


                I got same problem like guys here.

                I ran  “Compile All Classes” and check select Id, Name, NamespacePrefix, SymbolTable from ApexClass. Now SymbolTable is populated for all classes but when i ran tests from TWS I'm still not getting all of them. I even delete few times testcatch and result cache but this didn't help either.


                Any other tips please? And we have around 900 test classes so 2k limits is not my case.


                Thank you,

                Michal.



                #8

                kate.dulko

                  Posted 11 Jun 2018

                  Hi Michal,


                  Thank you for your post!


                  May I please clarify with you that you don't get all the test classes even after clicking the 'Refresh' button in the Run Tests wizard when all your classes have SymbolTable data on your org?


                  Also, can you please tell me if you get all the necessary test classes right after a project creation?

                  In addition, have you tried the workaround with deleting the TestCache.xml file?


                  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