Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow keeping $WORK after tests complete #5

Open
kortschak opened this issue Dec 28, 2023 · 0 comments
Open

allow keeping $WORK after tests complete #5

kortschak opened this issue Dec 28, 2023 · 0 comments

Comments

@kortschak
Copy link

After the talk at GopherConAU, I took a look at rsc.io/script for comparison with the current testscript I'm using (Rog's testscript extracted from internal). One of the things that I've noticed is that as far as I can see, there is no way for the invoker of go test to ask for the work dir to be left after the tests complete. This is possible in the go-internal package and was possible in the original script test implementation in go/cmd. But is missing here because the temp dir used for work dir is created by testing.common.TempDir which is always deleted on exit.

Having a way to examine scratch work in failing tests is a very valuable tool to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant