robotcode
robotcode copied to clipboard
[BUG] Running Test returns RobotCode Usage Spew
Describe the bug After following minimal setup, running a test case or suite (from the file or from the Testing pane) returns the USAGE spew from RobotCode, rather than executing the test.
To Reproduce Steps to reproduce the behavior:
- New VSCode window, new empty folder
- Create a new virtual environment
python -m venv venv
- Activate the environment, and select it as the VSCode python interpreter
- Install robotframework
- Create simple test suite
- Run test suite with RobotCode extension
- Rather than getting test output in the console, the RobotCode USAGE documentation is printed, indicating that the command line options are wrong somehow.
Expected behavior
my_test.robot:
one
log to console two
running with robotframework directly from terminal
$ robot my_test.robot
expected output:
==============================================================================
My Test
==============================================================================
one two
one | PASS |
------------------------------------------------------------------------------
My Test | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Output: C:\code\deleteme\output.xml
Log: C:\code\deleteme\log.html
Report: C:\code\deleteme\report.html
Screenshots/ Videos
Logs There is no output under Output, only terminal (see screenshot)
Desktop (please complete the following information):
- VS Code Version: 1.92.2
- RobotCode Version: 0.86.2
- OS: Windows
- Python Version: Python 3.10.11
- RobotFramework Version: Robot Framework 7.0.1