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
Describe the bug
Suite runner uses literal parameter value to create test name: https://github.com/ozontech/allure-go/blob/master/pkg/framework/runner/suite_runner.go#L230-L234
Also, test name is truncated to 150 characters, and this truncated string is used as a key in "name->method" mapping. Once one have long parameter strings or structures with long common prefix, they surprisingly lose tests for some of the parameters.
Additional context
Name length limitation in order to fix unrelated TempDir issue looks fragile. Please consider UUID, parameter value hash or even require Stringer conformance from a parameter. I tried UUID -- it worked fine for me.
The text was updated successfully, but these errors were encountered:
Describe the bug
Suite runner uses literal parameter value to create test name:
https://github.com/ozontech/allure-go/blob/master/pkg/framework/runner/suite_runner.go#L230-L234
Also, test name is truncated to 150 characters, and this truncated string is used as a key in "name->method" mapping. Once one have long parameter strings or structures with long common prefix, they surprisingly lose tests for some of the parameters.
To Reproduce
Additional context
Name length limitation in order to fix unrelated TempDir issue looks fragile. Please consider UUID, parameter value hash or even require Stringer conformance from a parameter. I tried UUID -- it worked fine for me.
The text was updated successfully, but these errors were encountered: