Skip to content

[BUG] Cannot rename suite #248

@simonmeggle

Description

@simonmeggle

Describe the bug
Inconsistency between possibilities on CLI and robot.toml.

To Reproduce
Steps to reproduce the behavior:

example.robot

*** Test Cases ***
My Test
    Log    Done.

Suite name from filename:

bash-5.1$ robot example.robot 
==============================================================================
Example :: This is a minimal Robot Framework suite. You can execute it with...
==============================================================================
My Test                                                               | PASS |
------------------------------------------------------------------------------
Example :: This is a minimal Robot Framework suite. You can execut... | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Output:  /home/simonmeggle/Documents/01_dev/robotmk-example-suites/minimal/output.xml
Log:     /home/simonmeggle/Documents/01_dev/robotmk-example-suites/minimal/log.html
Report:  /home/simonmeggle/Documents/01_dev/robotmk-example-suites/minimal/report.html

Set suite name with --name:

bash-5.1$ robot --name xxx example.robot 
==============================================================================
xxx :: This is a minimal Robot Framework suite. You can execute it with `ro...
==============================================================================
My Test                                                               | PASS |
------------------------------------------------------------------------------
xxx :: This is a minimal Robot Framework suite. You can execute it... | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Output:  /home/simonmeggle/Documents/01_dev/robotmk-example-suites/minimal/output.xml
Log:     /home/simonmeggle/Documents/01_dev/robotmk-example-suites/minimal/log.html
Report:  /home/simonmeggle/Documents/01_dev/robotmk-example-suites/minimal/report.html

Setting --name with robot.toml fails:
robot.toml

default-profiles = [
    "TEST"
]

[profiles.TEST]
name = "xxxx"
/home/simonmeggle/.vscode/extensions/d-biehl.robotcode-0.78.4/bundled/tool/robotcode --default-path . debug --no-debug -- --parse-include example.robot --name xxxx --suite xxxx.Example --by-longname xxxx.Example
[ ERROR ] Suite 'Minimal' contains no tests after model modifiers.

Try --help for usage information.

As Robotcode takes the cwd as root suite, I also tried:

default-profiles = [
    "TEST"
]

[profiles.TEST]
name = "Minimal.xxx"

Result:

/home/simonmeggle/.vscode/extensions/d-biehl.robotcode-0.78.4/bundled/tool/robotcode --default-path . debug --no-debug -- --parse-include example.robot --name Minimal.xxx --suite Minimal.xxx.Example --by-longname Minimal.xxx.Example
[ ERROR ] Suite 'Minimal' contains no tests after model modifiers.

Expected behavior
I expect setting the suite name in robot.toml as it is possible on the CLI.

Desktop (please complete the following information):

  • RobotCode Version 0.78.4
  • RF 7.0

Additional comment
I am not sure if this is really a bug. But I guess for Robotcode the "root" suite seems to be the parent folder (Minimal) - on the CLI it is the robot file itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededto-reviewneeds a review from another developer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions