Skip to main content

Tests

All OSQL test files that have the file extension .test.osql are supported by the VSCode plugin. This means that all files with an .test.osql extension is listed in the VSCode Test Explorer. You access the Test Explorer by clicking the conical flask icon science in the Activity Bar on the left. It will display all .test.osql files in your working directory.

Test explorer can be used to run tests in files ending with .test.osql.

To run a test file simply click the play button nex to the file or the green play button in the editor window.

If all tests pass you get a green check mark check_circle next to the test file. If a test fails you will get a red cancel next to the test file and the failed test will be highlighted in the editor with expected and actual results.

VSCode shows the expected and actual result of a failed test.

Note that you also get a text report in the output console if you select "SA Engine Tests" in the drop-down menu.