material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[test] Incorporate SauceLabs

Open jkruder opened this issue 11 years ago • 8 comments

Add SauceLabs to automated tests so that we can target a variety of platforms.

jkruder avatar Aug 04 '15 05:08 jkruder

I'm adding https://www.browserstack.com/ as another option.

oliviertassinari avatar Feb 27 '16 00:02 oliviertassinari

@nathanmarks Any experience in this area?

newoga avatar Feb 27 '16 00:02 newoga

@newoga Yep, browserstack is a great choice but I'm sure saucelabs works well too (I use browserstack at work). Whichever one we go with, for open source use someone is going to have to contact them to set the account up.

There are several options -- we can try and run our existing automated karma tests in different browsers (simple option), or we can setup an e2e or selenium folder in the /test directory and use something like nightwatch to interface with WebDriver. This new directory would contain e2e/acceptance tests specifically designed for testing cross browser compatibility.

(side note: selenium can also run tests in phantomjs, so the tests can also be run without a GUI.)

The real power of automated cross browser testing comes with using Selenium. WebDriver uses the JSON wire protocol to simulate user interactions with the browsers rather than relying on JavaScript code execution to perform state changes and interactions.

Obviously the 2nd suggestion is more extravagant, but it definitely brings a whole new meaning to "cross browser testing" vs karma tests.

nathanmarks avatar Feb 27 '16 01:02 nathanmarks

Obviously the 2nd suggestion is more extravagant, but it definitely brings a whole new meaning to "cross browser testing" vs karma tests.

It all sounds very nice. I think we should plan to get there one day. We can focus on increasing coverage first, then maybe some of the benchmarking you have planned for performance, then this last. Though feel free to tackle any if the mood strikes you :smile:

newoga avatar Feb 27 '16 18:02 newoga

@nathanmarks Are you on gitter by any chance or could you me an email?

newoga avatar Feb 27 '16 18:02 newoga

@newoga I'll find you on gitter

nathanmarks avatar Feb 27 '16 18:02 nathanmarks

My 2 cents regarding adding selenium tests.

When the API and components are more stable + there is a bigger focus on browser support, it'll make more sense to add them.

Alternatively, the first time a serious bug comes up that would be a perfect use case for this sort of testing, we could start setting it up.

nathanmarks avatar Feb 27 '16 18:02 nathanmarks

We ended up using BrowserStack over SauceLabs. That might change in the future if our needs evolves.

oliviertassinari avatar Feb 25 '17 13:02 oliviertassinari