0

Even though I have test classes and test methods in my SFDX project in VS Code none of the test methods gets picked up in the test panel.

enter image description here

I have configured a JDK in my VSCode here enter image description here

and enabled enter image description here

What am I missing?

6
  • Well, I can't answer your question, but I want to thank you for pointing out that VS Code has this feature, I hadn't seen it before. I haven't done anything special with settings (apart from making a connection with a sandbox), but somehow VS Code just shows all my Apex test classes and methods, and I can run them. Nov 5, 2020 at 7:43
  • Which structure are you using for the project, metadata (the old one) or source tracking (the one that came with SFDX) one?
    – Alba Rivas
    Nov 5, 2020 at 14:01
  • @alba-rivas I'm using the SFDX project structure.
    – Shiran
    Nov 8, 2020 at 22:36
  • Where do Apex test classes live? Directly in the classes folder? Or do you have subfolders? Can you share a screenshot maybe? And also of one of your test classes
    – Alba Rivas
    Nov 9, 2020 at 8:25
  • I think I figured it out. In my test classes I have used the annotation isTest, When I changed it to IsTest (note the capitalization), the plug-in started to identify my test classes. May be there is no "equalsIgnoreCase" in the plug-in code :-)
    – Shiran
    Nov 12, 2020 at 23:15

1 Answer 1

0

I think I figured it out. In my test classes I have used the annotation isTest, When I changed it to IsTest (note the capitalization), the plug-in started to identify my test methods.

May be there is no "equalsIgnoreCase" in the plug-in code :-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .