-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Labels
p1-choreDoesn't change code behavior (priority)Doesn't change code behavior (priority)
Description
Clear and concise description of the problem
I would like to display some information in the report with the test metadata. Therefore, when overloading the default reporter to rename the test by overriding the getTestName
function in the BaseReporter
class, I can easily add some metadata in the console.
But the getTestName
function is not used in the printTaskErrors
function. So, the metadata information are not displayed in the errors summary. The getFullname function from the @vitest/runner/utils
module.
Suggested solution
Use the getTestName
function in the BaseReporter
class in the printTaskErrors
function.
Or, create a new getFullName
function in the BaseReporter
class to use it in the printTaskErrors
function.
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
p1-choreDoesn't change code behavior (priority)Doesn't change code behavior (priority)