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
Is your feature request related to a problem? Please describe.
The names of each test case in grade's output is just the class name, function name, and function docstring, instead of being user-defined.
Describe the solution you'd like
Potentially a name decorator that will override the default name if one exists for a test function.
Describe alternatives you've considered
The docstring for each test function could also be used by itself, but this wouldn't allow more descriptive test docstrings, forcing them to be solely names.
The text was updated successfully, but these errors were encountered:
Definitely don't like docstring idea, a name decorator seems perfect. Only thing to consider is if this gets added, there also needs to be a way to assign it in the function (self.name = "test"). In reality, the tooling for this should be the same as all of the other attributes we set.
The linked PR implements the decorators and in-function assignment in the same way it works with others (ex. visibility and weight) currently. I also didn't care for docstrings as an idea, but figured I would mention it.
Is your feature request related to a problem? Please describe.
The names of each test case in grade's output is just the class name, function name, and function docstring, instead of being user-defined.
Describe the solution you'd like
Potentially a name decorator that will override the default name if one exists for a test function.
Describe alternatives you've considered
The docstring for each test function could also be used by itself, but this wouldn't allow more descriptive test docstrings, forcing them to be solely names.
The text was updated successfully, but these errors were encountered: