Explore Your Apex Tests in Visual Studio Code

See your test results at a glance, and jump from those results to your test code in Visual Studio Code. When Apex tests fail, you can jump from the test results straight to the line that contains the failed assert statement. When Apex tests succeed and you want to remind yourself what you were testing, you can jump to the method definitions for those tests. You can also see which test methods are in your test classes from the testing sidebar.

Where: This feature applies to Lightning Experience, Salesforce Classic, and all versions of the Salesforce app in Enterprise, Performance, Unlimited, Developer, and Database.com editions.

When: We expect to make this functionality available (and to provide documentation) when Salesforce Extensions for VS Code v44 is released on October 13, 2018, or possibly earlier. For updates, keep an eye on the Salesforce Extensions for VS Code change log.

Why: See and run your Apex tests (1), and jump from the test names to the corresponding lines in your code (2).

VS Code window showing the test panel (1) and a highlighted assertion from a failed test (2)