VS Code 'Launch.json' and Exclude Tags


I am using the launch.json from VS Code to automatically exclude tests which have ‘Test Tags’ with a special tag.

Excerpt from launch.json:

“type”: “robotframework-lsp”,
“name”: “Robot Framework: Launch template”,
“request”: “launch”,
“terminal”: “integrated”,
“args”: [

Problem is that the robot file with the ‘Test Tags’ “‘no_tests’” is not skipped but tests is running.
Anybody an idea what I am doing wrong?

*** Settings ***
Resource        lib/common.resource
Test Tags       no_tests


Hi Simon,

I guess it would be useful to first determine if this issue is related to the VSCode plugin or a bug in robot framework?

can you try running robot with these same args from outside VSCode and see if you get the same result?

Also it’s probably worth mentioning your robot framework version and the version of the VSCode plugin you are using to run robot (is it a plugin or juts part of VSCode? I don’t use VSCode myself)

Knowing these things will help with troubleshooting,



If the pasted launch.json is exactly the same you have, there are triple quotes around the tag no_tests.
That might be the problem maybe.

Try to replace with double quotes only, because syntax then seems correct.
Then dig with Dave idea to narrow down where the issue lies :slightly_smiling_face:




I have 0 experience with VS Code but somehow “robotframework-lsp” does not sound like having --exclude for it is the correct place ?

1 Like