Skip to content
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

Merged
merged 7 commits into from
Jul 29, 2021

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
@@ -155,4 +161,103 @@ export class DeployResultFormatter extends ResultFormatter {
}
}
}

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(',');

src/formatters/deployResultFormatter.ts Outdated Show resolved Hide resolved
src/formatters/deployResultFormatter.ts Outdated Show resolved Hide resolved
src/formatters/deployResultFormatter.ts Outdated Show resolved Hide resolved
src/formatters/resultFormatter.ts Show resolved Hide resolved
@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.

3 participants