-
Notifications
You must be signed in to change notification settings - Fork 114
Console output should prefix messages with "Suite" instead of "Test" for suites #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…for suites Resolves rdar://120962053
@swift-ci please test |
@@ -142,6 +142,14 @@ extension Event.HumanReadableOutputRecorder { | |||
} | |||
} | |||
|
|||
extension Test { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to make this just a function local to the file rather than extension because the extension implies something a bit stronger than just "this is the string this recorder uses" to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also "title" seems like the wrong noun, but that's probably a bit too nitpicky.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open to suggestions but this is just private to the file so I'm not too concerned by the word "title"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I got nothin'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick, but otherwise looks good to me.
@swift-ci please test |
There are known issues impacting CI currently so merging based on local testing. |
This changes the console output to prefix messages with the word "Suite" instead of "Test" for events representing suites.
Motivation:
It's helpful to users to distinguish between test functions (aka "tests") and suite types (aka "suites") in the human-readable console output shown while running tests, to clarify the role each item plays.
Modifications:
Event.HumanReadableOutputRecorder
to check for suites and use the appropriate word.Result:
Console output now shows "Suite" for suites.
Checklist:
Resolves rdar://120962053