robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

[BUG] Running Test returns RobotCode Usage Spew

Open adamweld opened this issue 6 months ago • 3 comments

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:

  1. New VSCode window, new empty folder
  2. Create a new virtual environment python -m venv venv
  3. Activate the environment, and select it as the VSCode python interpreter
  4. Install robotframework
  5. Create simple test suite
  6. Run test suite with RobotCode extension
  7. 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 image

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

adamweld avatar Aug 29 '24 18:08 adamweld