-
Notifications
You must be signed in to change notification settings - Fork 18
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
fix: add verbose test detail when deploying with tests #151
Conversation
@@ -155,4 +161,103 @@ export class DeployResultFormatter extends ResultFormatter { | |||
} | |||
} | |||
} | |||
|
|||
protected verboseTestFailures(): void { | |||
if (this.result.response.numberTestErrors) { |
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.
any possibility of response
being undefined and this throwing clumsily? Using this.result?.response?.[etc]
would still skip the rest of this method.
}); | ||
|
||
return uncoveredLines.join(','); | ||
}, |
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.
map is more performant and some customers have really large test suites.
}, | |
return (Array.isArray(locationsNotCovered) ? locationsNotCovered : [locationsNotCovered]) | |
.map(uncoveredLine => uncoveredLine.line) | |
.join(','); |
What does this PR do?
adds verbose testing output on deploy
What issues does this PR fix or reference?
@W-9622493@
requires forcedotcom/source-deploy-retrieve#395