You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:Any ideas how I could do that? It doesn't look like I have access to update the
wdio:vscodeOptions
anywhere.The text was updated successfully, but these errors were encountered: