Skip to content
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: Is it possible to dynamically change the workspacePath? #128

Open
kgartland-rstudio opened this issue Jul 11, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@kgartland-rstudio
Copy link

I have a project that requires a different workspacePath for each spec. I know I can set an environment variable for the path outside the configuration and pass it in, however then I'd have to define which spec to run and which path and then loop through all my specs. I'd rather use the webdriver logic to control that aspect.

I was hoping for a way to do something like this inside the wdio.conf.ts file:

switch (spec) {
 case 'first_spec':
    workspacePath = "/my/path/to/first_content/"
    break;
case 'second_spec':
   workspacePath = "/my/path/to/second_content/"
   break;
...

Any ideas how I could do that? It doesn't look like I have access to update the wdio:vscodeOptions anywhere.

@christian-bromann
Copy link
Contributor

This is currently not possible but definitely something nice to have, all contributions are welcome!

@christian-bromann christian-bromann added enhancement New feature or request help wanted Extra attention is needed labels Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants