The Welkin Suite Forum

Unit Tests Methods and other issues...



Unit Tests Methods and other issues...

  • Please log in to reply

#1
windows version welkinsuite

Randy

    Posted 04 Dec 2017 and edited 12 Dec 2017

    I've noticed that when writing unit test that I lose code intellisense while typing inside the method when first created. If I delete the '@isTest' attribute, then re-add it code intellisense comes back. Or, if I initially start typing without the '@isTest' method I will see no code intellisense, then if I add it then I am able to see the code intellisense. Not sure if other are experiencing this issue. Not overly a big issue, just annoying.

    Also, another issue I have noticed, which I'm not sure is an issue, possibly it hasn't been added as a feature yet is when I add a brace, I don't get closing braces. Also, is it possible to make it so that braces are auto populated on the next line intead of the first line i.e.:

    private void Foobar()

    {

          //... Code ...

    }


    istead of:


    private void Foobar() {

       // ... Code ...

    }


    This is my style of coding and I think it would be nice to be able to format styling in this way if not already being worked on. I've reported the bug in the IDE and I've also included screen shots below on the first issue above of the different scenarios I've encountered.


    Thanks!


    -R


    Attached Files


    4 replies to this topic

    #2

    Randy

      Posted 04 Dec 2017

      Update to the above and closing braces. Looks like there is an extension that handles this. It is called:


      Brace Complete: https://marketplace.visualstudio.com/items?itemName=JoelSpadin.BraceCompleter


      Would be nice if this was built-in though.


      -R



      #3

      vlgubanovich

        Posted 11 Dec 2017

         Hi Randy,


        Thank you for such a detailed report!

        We will work on fixing the issue with the "@isTest" annotation. I believe we'll release a fix for it within a month.

        Regarding the braces completion - absolutely agree that this makes sense. We'll add this functionality in the nearest future, however not sure if it will allow choosing the preferred style right from the beginning. I'd personally prefer your way (being a former .NET dev), however I believe that we'll stick with the standard Java/Salesforce braces styling from the beginning and will add this option later on.


        Thank you,

        Vladimir


        Vladimir Gubanovich
        Head of Product
         
        The Welkin Suite
        skype id: vladimir.gubanovich
        e-mail: vladimir.gubanovich@welkinsuite.com


        #4

        eric.miller

          Posted 12 Dec 2017

          I'm having this same issue but removing and adding back is not working. I still have the issue.

          It's odd that all was well then the next time after the update it stops working.

          Please advise what to do. any way to roll back to previous version?


          thansk 

          Eric Miller



          #5

          vlgubanovich

            Posted 12 Dec 2017

            Hi Eric,


            Thank you for letting us know about the issue.

            The team is already looking at the reasons why code completion might not work in your case. Can you please let me know if it's now working for you in all classes/triggers or is it only certain files?

            Thank you,

            Vladimir


            Vladimir Gubanovich
            Head of Product
             
            The Welkin Suite
            skype id: vladimir.gubanovich
            e-mail: vladimir.gubanovich@welkinsuite.com





            Boost Your Productivity. Get Started Today

            Try Free Trial