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
Output a_special_name_the_library_can_find_automatically.txt
Hide
Type "go build -o hello . && clear"
Enter
Show
Type ./hello
Sleep 1s
...
Or instead of Output a tape directive that output the golden file only could be used (e.g: OutputGolden) or the library does it automatically internally
Describe alternatives you've considered
My current workaround is to execute the VHS cli (with a tape that generate a golden file) from the go test code and ReadFile the golden file before and after the call to VHS, then test whether the two files' content are the same.
It feels clumsy (messes up the git status) and comparing the two versions of golden files make the code verbose if to be done efficiently
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Hello, I intend to write regular go tests on CLI projects and we use GitLab for CI/CD (so VHS Github action won't help).
Describe the solution you'd like
I imagine something like below (I'm beginner at go so I apologise if it's not idiomatic, I'm quite open about how it could be done)
Where
app.tape
will start withOr instead of
Output
a tape directive that output the golden file only could be used (e.g:OutputGolden
) or the library does it automatically internallyDescribe alternatives you've considered
My current workaround is to execute the VHS cli (with a tape that generate a golden file) from the go test code and ReadFile the golden file before and after the call to VHS, then test whether the two files' content are the same.
It feels clumsy (messes up the git status) and comparing the two versions of golden files make the code verbose if to be done efficiently
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: