The Welkin Suite Forum

[Solved] Run tests not showing



Run tests not showing

  • Please log in to reply

#1
windows version welkinsuite

marco.pietersen

    Posted 12 Feb 2018 and edited 17 Feb 2018

    Hi, I'm trying to run unittests in my DX Solution, but the Run tests box doesn't show any tests.



    7 replies to this topic

    #2

    kate.dulko

      Posted 12 Feb 2018

      Hi Marco,


      Thank you for your bug report.


      May I please clarify with you some additional information so that we could detect a reason for this issue?

      Here are my questions:

           1. Do you have a selected default organization in the Organizations Manager?

           2. Can you see project node(s) in the Run tests window?

           3. I kindly ask you to execute the next query for your organization on Salesforce:

      select Id, Name, NamespacePrefix, SymbolTable from ApexClass

      This way we can check if tests have a SymbolTable data. If this data is empty for tests, an organization doesn't provide the IDE with an information about these tests.


      Looking forward to your response and will be happy to help.


      Thank you,

      Kate


      Kate Dulko
      Customer Relations

      The Welkin Suite

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

       

        


      Post deleted by author.

      Post deleted by author.

      #5

      marco.pietersen

        Posted 13 Feb 2018

             1. Do you have a selected default organization in the Organizations Manager?

        I have. It's under SFDX org / <Company> 

             2. Can you see project node(s) in the Run tests window?

        It's there, yes.

             3. I kindly ask you to execute the next query for your organization on Salesforce: select Id, Name, NamespacePrefix, SymbolTable from ApexClass 

        That is a bit more challenging, as the query explorer also doesn't work in my DX project. Perhaps you should do some more testing before releasing it to the public? 

        The query has an empty Schema Explorer and the buttons Execute ... are greyed out. 


        As to the query result:
        select Id, Name, NamespacePrefix, SymbolTable from ApexClass
        ^
        ERROR at Row:1:Column:35
        No such column 'SymbolTable' on entity 'ApexClass'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.

        I get this in both workbench and devconsole. 
        If I investigate the table in workbench SymbolTable doesn't appear on the list of fields. I understand it's part of the Tooling API and maybe only released in v42, but I can't seem to query it, neither can I query SELECT Body, ContentEntityId, SymbolTable FROM ApexClassMember.


        Hope this helps


        Attached Files


        #6

        kate.dulko

          Posted 13 Feb 2018

          Hi Marco,


          Thank you for your detailed response.


          According to your screenshot, we can see that you have selected a default Dev Hub (in your case this is 'YAYA'), and I kindly ask you to make your 'SyncManager1' a default organization. For this, please right-click on it and select a 'Make default' command.

          After this, please check if you could see tests in the Run tests window and if you have an ability to execute SOQL queries.


          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

           

            

          • 1

          #7

          marco.pietersen

            Posted 14 Feb 2018

            Thank you for pointing this out. I've tried it and that works as expected now. 



            #8

            kate.dulko

              Posted 14 Feb 2018

              Hi Marco,


              Thank you for your update.

              I'm happy to hear that now you can work on your tests and use SOQl editor in your SFDX project.


              I'll close the current topic as Solved.


              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