Test the code

The Ballerina VS Code extension provides the ability to run the tests you have written in your Ballerina programs.

Tests are written in Ballerina programs by annotating them with @test:Config.

Click the Run icon, which appears next to the @test:Config annotation to execute the tests. Also, right-click the icon to add breakpoints and debug the tests.

Info: For more information on debugging tests, see Test debug sessions.