Closed j-puri closed 1 year ago
Added trimming of the parametrized test name to 150 characters.
By default, the test name was concatenated from the values of your structure arguments. You can override the String() method for your structure, so that it returns a shorter and more informative name. Example: func (t TestParams) String() string { return "short informative name" }
Describe the bug Using the new parameterised tests mechanism I'm unable to create a TempDir() if I use relatively long parameter values. The error reported is
file name too long
To Reproduce
Expected behavior The test name is truncated to create a temp directory.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context output: