robotcodedev / robotcode

RobotFramework support for Visual Studio Code
https://robotcode.io
Apache License 2.0
177 stars 14 forks source link

[ENHANCEMENT] Introduce `cwd` Setting in `robot.toml` to Specify Start Path for Robot #287

Open d-biehl opened 2 months ago

d-biehl commented 2 months ago

Description: In many projects, RobotFramework tests and their associated libraries are organized in subdirectories. To improve the flexibility and usability of these projects, I propose adding a cwd (current working directory) setting in the robot.toml file. This setting will allow users to specify the start path for robot, making it easier to manage and execute tests located in various subdirectories.

Proposed Changes:

  1. Add a new cwd setting in the robot.toml configuration file.
  2. Modify the RobotFramework execution logic to use the specified cwd as the starting path for test discovery and execution.

Benefits:

Example robot.toml Configuration:

[robot]
cwd = "path/to/tests"