hashicorp / hashicorp/terraform-plugin-testing

Use testing.T.TempDir

Open
#67 0 comments 0 reactions 1 assignee Claimed by @bbasata View on GitHub
Dominant language
Go
Stars
68
Forks
22
Avg merge
2d 12h
Merged PRs (30d)
1

Description

Now that we get to use Go 1.15 features (#707) we can take advantage of [`testing.T.TempDir`](https://golang.org/pkg/testing/#T.TempDir), which will give us a temporary directory that will only last the duration of the test, meaning we don't need to handle cleanup of temp directories anymore.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.