Fill env variable with a shell command before running tests #1990
Unanswered
pier-oliviert
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is somewhat of a niche problem, so I'm not sure if there's a solution for this. I am working on a project that needs to read a wrapped token that is generated from Vault and that token is only usable once.
What I'd like to do, is to prepend the
go test
command to set an environment variable that I can read, so that token can be generated every time I run a test.Currently, I do the following command:
But I'm not familiar enough with VSCode's settings/extensions to know how I can translate that in an extension setting.
Any idea?
Beta Was this translation helpful? Give feedback.
All reactions