Skip to content

publish test/coverage results even if the tests report errors - #6815

Merged
outofambit merged 5 commits into
developmentfrom
always-send-test-results
Feb 14, 2019
Merged

outofambit merged 5 commits into
developmentfrom
always-send-test-results

Conversation

@shiftkey

Copy link
Copy Markdown
Member

Overview

This PR ensures that our CI platforms always do a yarn test:report to publish any test results to CodeCov. Azure Pipelines has it's own way to publish test results, but the principle is the same.

For example, this CircleCI build will "Report to CodeCov" when the tests pass.

But this CircleCI build from #6803 returns exit code 1 inside yarn test and it will instead skip "Report to CodeCov" and instead check for details about the test failure (added as part of that PR) before cleaning up:

The goal here is to ensure we upload test and code coverage results whether or not the build succeeds. If we're only uploading test results when they pass, we'll only ever be at 100% tests passing and lack insight into what tests are failing over time.

Release notes

Notes: no-notes

@shiftkey shiftkey added the infrastructure Issues and pull requests related to scripts and tooling for GitHub Desktop label Feb 10, 2019
@shiftkey shiftkey added this to the 1.6.3 milestone Feb 10, 2019
Comment thread .travis.yml Resolved
Comment thread appveyor.yml Resolved
@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Feb 10, 2019

@outofambit outofambit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one small change requested, but this is great!

Comment thread appveyor.yml Resolved
@outofambit outofambit self-assigned this Feb 13, 2019
@shiftkey
shiftkey requested a review from outofambit February 13, 2019 19:10
@outofambit
outofambit merged commit cf66058 into development Feb 14, 2019
@outofambit
outofambit deleted the always-send-test-results branch February 14, 2019 20:18
@Tunminkhaing

Copy link
Copy Markdown

Tunminkhaing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Issues and pull requests related to scripts and tooling for GitHub Desktop ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants