-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] Unable to use non-default robot.toml configuration when running tests from VSCode GUI #333
Comments
How can the robotcode.extraArgs be configured? Could you provide an example? Additionally, what is the rationale for using non-default locations? |
I will investigate this a bit further. It might be possible to use a However, there is another request for supporting multiple TOML files: #282. This might be a better solution for your challenge. The implementation shouldn't take too long. I would lean towards option 2, as you would only need to create the files, and robotcode would take care of the rest. What do you think? |
Option 1 (config-files directive) in #282 would let me couple the configuration files with the various test_environments in the way I'm looking for. Then I could do
And still use Option 2 falls bit short in that the test_environments would still be decoupled from their configuration files and conflict resolution between configurations for different environments would have to be done inside |
At the moment, you need to use the Something like this: {
"version": "0.2.0",
"configurations": [
{
"name": "RobotCode: Default",
"type": "robotcode",
"request": "launch",
"presentation": {
"hidden": true
},
"purpose": "default",
"robotCodeArgs": [
"-c",
"path_to/config.toml"
]
}
]
} You need to adjust the paths, of course ;-) I'm thinking of a way to configure this better, or I'll implement issue #282, or both, but that will take a little while... |
I want to have my robot.toml configuration in non-default locations.
For most part this works fine
robot.toml
in with--config
robotcode.languageServer.extraArgs
What does not work for me is running/debugging tests with VSCode
robotcode.extraArgs
they do not seem to get passed to the robotcode when starting test runs from VSCode GUI (Testing View or Editor). Test runs are started withrobot.toml
configuration in one of the default paths instead.Is there an option I am missing that would allow me to configure which
robot.toml
file to use when starting test runs from VSCode GUI?The text was updated successfully, but these errors were encountered: