robotcode
robotcode copied to clipboard
[BUG] Right clicking "Run Tests" does not work on files.
Describe the bug In VSCode file explorer, right clicking "Run Tests" works on directories but not on files. It returns "No tests found in the selected file or folder". But it works if I right-click "Run Tests" from the parent folder, or from the green arrows in the file.
To Reproduce Steps to reproduce the behavior:
- Go to VSCode file explorer
- Right Click on Test Suite file
- Select "Run Tests"
- See information popup on the bottom right: "No tests found in the selected file or folder"
Expected behavior It should work on test suite file as it works on folders. Tests should be detected.
Screenshots/ Videos
Desktop (please complete the following information):
- VS Code Version 1.87.2
- RobotCode Version 0.78.4
- OS: Windows
- Python Version 3.11.8
- RobotFramework Version 7.0
I can reproduce the behaviour.
This is a weird feature of vscode, why showing these entries if the file or folder does not contain tests. Need to investigate this a little bit more...
This is a weird feature of vscode, why showing these entries if the file or folder does not contain tests.
The issue is that the file actually contains tests.
This also does not work with Python tests and Dotnet tests, running tests in a folder works, but not at file level. There is something wrong with VSCode and not in the RobotCode extension. @gohierf have you also tried with python tests? Maybe we should open an Issue on VSCode?
Good to know! Unfortunately, I only have Robotframework tests available at hand.