The challenge arises when tests fail. The output is not specific about which test types are failing, making it difficult to pinpoint the issue. For example:
I propose enhancing the test structure by adding descriptive labels or comments to each test case within the struct slice. This adjustment will make the test failure outputs more informative, aiding in quicker identification and resolution of issues.
Context
In our unit tests, we use a structure that includes a slice of structs for defining test cases:
Source
The test functions execute these cases in a specified order:
Source
Issue
The challenge arises when tests fail. The output is not specific about which test types are failing, making it difficult to pinpoint the issue. For example:
Suggested Action
I propose enhancing the test structure by adding descriptive labels or comments to each test case within the struct slice. This adjustment will make the test failure outputs more informative, aiding in quicker identification and resolution of issues.