Deployment - Run selected tests - Show classes

The Welkin Suite Forum

Deployment - Run selected tests - Show classes



Deployment - Run selected tests - Show classes

  • Please log in to reply

#1
windows version welkinsuite

bvanburen

    Posted 17 Nov 2017 and edited 18 Dec 2017

    When deploying and selecting run selected tests, it does not show all the test classes.  It seems to only displayes the test classes from packages.    Is there a way to select non packaged test classes?  Only if you redeploy the test class does it show up.    


    Is there a way to filter by namespace.   Most of the time people test blank or a specfic namespace, seems silly to show test classes that you do not have access and do not appear in the project anyway. 


    Thanks!





    5 replies to this topic

    #2

    kate.dulko

      Posted 20 Nov 2017

      Greetings,


      Thank you for contacting us with this.


      First of all, please tell me if you are going to deploy to the same or to another Salesforce organization?

      If you want to deploy to another org, may I please clarify with you some more additional details that could help us in our investigation? Here they are:

             1) Which tests do you see in the list: from an org that is related to your local TWS project or from a remote organization?

             2) Which test do you not see: from your local or remote org?


      Also, can you please check if the list of all the test is available for you in the 'Run tests' wizard in your TWS project? You can open this wizard from the menu Project.

      If the list is empty or not actual, please click 'Refresh', and when all the tests will appear, please check if the issue that you are faced with during the deployment process is reproduced.


      In addition, I kindly ask you to reproduce the issue one more time and send us a bug report with the attached log files directly from the IDE - you can find the option for this in the menu Help -> Report a Bug, please enable the 'Attach Log File' checkbox and put your email. This way we will receive your TWS logs that would help us in the investigation.



      One more question, can you please clarify what do you mean by 'redeploy the test class'?


      As for filtering by namespace, we will add displaying a namespace prefix in The Welkin Suite for Windows to use it for search criteria.


      Thank you,

      Kate


      Kate Dulko
      Customer Relations

      The Welkin Suite

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

       

        


      #3

      bvanburen

        Posted 27 Nov 2017

        I am trying to deploy to the production org from a sandbox. 

        When running the deploy to an ogrnazation and select specified tests, I only see the tests for 3rd party vendor's manage packages in the production org.  They are marked remote.      

        I do not see any test that are not from managed packages to select.  if i add a test class to deploy,  It will then appear with all the usless manage packages test.  


        If I run the test wizard, i see the local test from the project.    




        #4

        kate.dulko

          Posted 04 Dec 2017

          Hi Bruce,


          Thank you for your response and for the bug report that you have sent from the IDE.


          In general, in the 'Run specified tests' list during the deployment process we show the next tests:


               - tests from your local project that are included to the deployment process; in other words, you will see those tests which you have selected for deploying to another org  (if I understood properly, this works for you) or no tests from your current TWS project if you haven't selected any of local test classes;

               - tests from a remote organization which this org returns to the IDE - since you can see only the tests from managed packages, this means the IDE got that only this information from your target org.


          One of the possible reasons for the absent tests from the target org can be that the value of the SymbolTable for your Apex classes is empty on this organization.

          To check this, please follow the next steps:

               1) please open the Developer Console and Query Editor in it;

               2) please paste the next query:

                         select Id, Name, NamespacePrefix, SymbolTable from ApexClass

               3) check the 'Use Tooling API' checkbox;

               4) click 'Execute' button.


          Can you please let us know if all the files have data in the 'SymbolTable' column?


          Also, you can create a new TWS project related to your remote organization and check if you would get the list of all the tests in the 'Run tests' wizard from this org in the IDE.

          I kindly ask you also to share this information with us.


          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

           

            


          #5

          bvanburen

            Posted 15 Dec 2017

            I can see the symbol column and my test are mixed in with all the managed package tests.  How do you get rid of the managed packages when deploying.  The manage packages  also appear in the sandbox. Why?  


            How do you get filter out the hundreds of managed package tests that are mixed in with the local tests.  Whats the point if you can't see the source code anyway.





            #6

            kate.dulko

              Posted 18 Dec 2017

              Hi Bruce,


              Thank you for the additional details.


              If I understand properly, you still don't get local tests in the deployment wizard.

              Can I please ask you to do one more thing on your side to check this behavior: can you please navigate in your org to the Setup -> Custom Code -> Apex Classes and hit the 'Compile all classes' link/button? Will your local tests appear in the deployment wizard?
              In case if they won't appear we'll keep investigating this case on our side to find a reason and solve it as soon as possible.


              Regarding mixing your local tests with tests from managed packages, I agree that this might be confusing and makes not a lot of sense in many cases. We are going to change this mechanism and will separate these tests by filtering them according to namespaces and adding an option to hide/exclude tests from managed packages.

              We'll try to include the change for this into the first version next year.



              Hope this would help.


              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