azure-devopsvstest

Secrets as environmental variables in vstest


In my tests I'm using environmental variable. Due to security reasons, when setting it in azure devops pipeline I need to mark it as secret. Is it possible to pass it as argument, within vstest task?


Solution

  • I've been through this. There's no way to pass variables to VSTest on the command line, which means you have to jump through a few hoops.

    You have a few options: