Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Load test data as fixtures #168

Closed
jessicayuen opened this issue Nov 28, 2017 · 0 comments
Closed

Load test data as fixtures #168

jessicayuen opened this issue Nov 28, 2017 · 0 comments

Comments

@jessicayuen
Copy link
Contributor

Move large test files into their own separate files and load as fixtures, so that it is easier to see what tests are being run.

Also, it might be good to take advantage of go subtests as well. This will allow for more descriptive failures instead of the whole testing failing. e.g:

cases := []struct{
name string
}{}

for _, case := range cases {
t.Run(string, func(t *testing.T) {
// where the magic happens
})
}

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

No branches or pull requests

3 participants