gmusic-utils / gmusic-theme.js

Generic theming library extracted from Google Play Music Desktop Player
The Unlicense
23 stars 8 forks source link

Testing #2

Open twolfson opened 8 years ago

twolfson commented 8 years ago

To answer the question "How do we test a theming library?", there is an area of testing known as Visual regression/Perceptual diff testing. I wrote an article a while back which should be enlightening:

http://twolfson.com/2014-02-25-visual-regression-testing-in-travis-ci

The tl;dr of it is, log into application, navigate pages, take screenshots, compare screenshots to expected screenshots. Since the time of writing there have been some more testing libraries created, e.g. gemini, which is what I use at work (although with a mod for full page screenshots):

https://github.com/bem/gemini

We should be able to reuse the BrowserStack harness from gmusic.js to handle all the authentication and navigation.

For the interim, we should still have CI set up that only runs linting (so there's some test infrastructure).

MarshallOfSound commented 8 years ago

@twolfson I seem to have lost admin writes to this repo during the transfer process so I can't set up travis intergration?

Could you configure it please because you appear to be the owner now :smile:

twolfson commented 8 years ago

I'm the captain now

Sure thing, I will create a new team and make you the owner for it :+1:

twolfson commented 8 years ago

Ah, looks like you made a team. Nice =)

It looks like we might need 2 teams though, 1 for maintainers and 1 for owners of repos. Going to do that

twolfson commented 8 years ago

Alright, done and done. You should be good to go now.

MarshallOfSound commented 8 years ago

Travis building now :+1: