Skip to content

Conversation

@WillieRuemmele
Copy link
Contributor

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

@WillieRuemmele WillieRuemmele requested a review from shetzel July 22, 2021 21:43
}

protected verboseTestFailures(): void {
if (this.result.response.numberTestErrors) {
Copy link
Contributor

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(',');
},
Copy link
Contributor

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.

Suggested change
},
return (Array.isArray(locationsNotCovered) ? locationsNotCovered : [locationsNotCovered])
.map(uncoveredLine => uncoveredLine.line)
.join(',');

@shetzel shetzel merged commit 1485c0e into main Jul 29, 2021
@shetzel shetzel deleted the wr/deployTestFailure branch July 29, 2021 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants