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 screenshot tests for external contributors and pull requests #638

Merged
merged 14 commits into from
Jan 29, 2019

Conversation

gugu
Copy link
Contributor

@gugu gugu commented Jan 28, 2019

What was changed:

  1. Golden screenshots are downloaded with their public URL, not with GCS API. The comparison will become available for everyone
  2. If there are no GSC token available, tests still compare screenshots with Golden but do not upload anything
  3. travis.yml tests will run for every branch of every repository, not only for master of main repository

This means if no UI changes, screenshot tests will pass. Goldens will still need to be uploaded manually

@codecov-io
Copy link

codecov-io commented Jan 28, 2019

Codecov Report

Merging #638 into rc0.10.0 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           rc0.10.0     #638   +/-   ##
=========================================
  Coverage     94.83%   94.83%           
=========================================
  Files            67       67           
  Lines          2768     2768           
  Branches        414      414           
=========================================
  Hits           2625     2625           
  Misses           50       50           
  Partials         93       93

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b80188...59f2498. Read the comment docs.

@gugu
Copy link
Contributor Author

gugu commented Jan 28, 2019

Aaaand... it's green

@moog16
Copy link

moog16 commented Jan 28, 2019

@gugu can you change base to rc0.10.0. Reviewing right now

@gugu gugu changed the base branch from master to rc0.10.0 January 28, 2019 21:01
Copy link

@moog16 moog16 left a comment

Choose a reason for hiding this comment

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

Thanks for making these changes

docs/screenshot-tests.md Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
test/screenshot/screenshot.tsx Outdated Show resolved Hide resolved
@@ -5,11 +5,6 @@ git:
dist: trusty
sudo: required

branches:
Copy link

Choose a reason for hiding this comment

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

there is also a piece in the release readme. Can you please update.

@moog16
Copy link

moog16 commented Jan 28, 2019

Approved changes once the release readme is updated. Thanks so much @gugu !

@gugu
Copy link
Contributor Author

gugu commented Jan 29, 2019

@moog16 do you mean to remove this section?

@moog16
Copy link

moog16 commented Jan 29, 2019

@gugu yes. I just meant to edit at your discretion

@moog16 moog16 merged commit ae38323 into material-components:rc0.10.0 Jan 29, 2019
moog16 pushed a commit that referenced this pull request Jan 30, 2019
moog16 pushed a commit that referenced this pull request Feb 19, 2019
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