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

Added percy integration #143

Merged
merged 9 commits into from
Mar 5, 2019

Conversation

yohanmishkin
Copy link
Contributor

Percy is a visual testing tool designed to help catch regressions and reduce the amount of manual testing done in your application.

With Percy's recent introduction of a free plan and some important CSS changes planned for Ember Observer, Percy now makes a lot of sense.

This PR:

  • installs ember-percy, an ember addon used to easily integrate Percy into ember projects
  • adds percy snapshots to some of the most commonly accessed pages of the application

Notes

  • ember-percy repo is here.
  • PERCY_TOKEN has already been added to the CI env so snapshots for master will hopefully just begin being taken once the PR merges.

@codecov-io
Copy link

codecov-io commented Mar 5, 2019

Codecov Report

Merging #143 into master will increase coverage by 3.34%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #143      +/-   ##
==========================================
+ Coverage    75.8%   79.15%   +3.34%     
==========================================
  Files         102      102              
  Lines         806      806              
==========================================
+ Hits          611      638      +27     
+ Misses        195      168      -27
Impacted Files Coverage Δ
app/components/test-result-status.js 57.14% <0%> (+57.14%) ⬆️
app/helpers/test-result-status-class.js 60% <0%> (+60%) ⬆️
app/controllers/canary-test-results/date.js 75% <0%> (+75%) ⬆️
app/components/canary-test-result-summary.js 100% <0%> (+80%) ⬆️
app/routes/canary-test-results/index.js 100% <0%> (+100%) ⬆️
app/routes/canary-test-results/date.js 100% <0%> (+100%) ⬆️
app/routes/lists/top-addons.js 100% <0%> (+100%) ⬆️
app/routes/addons/correct.js 100% <0%> (+100%) ⬆️

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 9cd8fe8...2523c87. Read the comment docs.

@yohanmishkin
Copy link
Contributor Author

The naming convention I used for Percy snapshots feels a bit arbitrary and the placement of these new snapshots was a general good faith attempt. Please feel free to let me know if there's some other routes that are deserving of snapshots or if there's a better way to name them!

@@ -399,6 +403,9 @@ module('Acceptance: Addons', function(hooks) {

test('can view a scoped addon with a / in the URL', async function(assert) {
await visit('/addons/@foo-bar/test-addon');

await percySnapshot('/addons/show');
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be in a different test that will have all the addon sections filled out?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right on, will update. Thanks!

Copy link
Member

@kategengler kategengler left a comment

Choose a reason for hiding this comment

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

A few more routes that it'd be great to have covered by Percy:
addons.correct, lists.top-addons, canary-test-results.date, admin.review.addon

@yohanmishkin
Copy link
Contributor Author

Sounds great, thanks @kategengler !

@yohanmishkin
Copy link
Contributor Author

@kategengler I think this may be ready for a re-review. Let me know if I missed anything!

@kategengler kategengler merged commit e2b3593 into emberobserver:master Mar 5, 2019
@kategengler
Copy link
Member

Thanks for this!!!

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