robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

[BUG] Running Test returns RobotCode Usage Spew

Open adamweld opened this issue 1 year 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

Cannot reproduce this...

do you have any settings regarding robotcode left on user level or project level? I see an empty --profile entry.

I am not sure, if this is the problem, I had some trouble with the builtin windows powershell with some commands in VSCode. That's why I switched to the new PowerShell, did you tried it: https://github.com/PowerShell/PowerShell? You can install it via the Window Store or with winget.

d-biehl avatar Aug 29 '24 20:08 d-biehl

I just realized that somehow some packages in the VSCode extension file got lost. I'll have to find out why...

Can you maybe try to install an old RobotCode version and check if it works?

d-biehl avatar Aug 29 '24 20:08 d-biehl

Any news about this issue?

d-biehl avatar Sep 04 '24 13:09 d-biehl

cannot reproduce this bug, so I close it.

d-biehl avatar Sep 29 '24 19:09 d-biehl