C#C
C#3y ago
guacjack

❔ Environment variables in tests

Hello,

I'm coming from a Java background here, or rather IntelliJ background where for any given Run Configuration (in this case a unit test) I can set any command line variables or environment variables.

The reason im wanting to do this is i want to set debug mode for Playwright so that i can record my clicks for the test. I was not able to find a way to do this via Visual Studio.

Basically, just to debug a test, i'm wanting to set PWDEBUG=1 as an environment variable in the IDE so that the Playwright popup shows.

Thanks
Was this page helpful?