axemclion / grunt-saucelabs

Grunt task for running all your browser tests using Sauce Labs
MIT License
182 stars 98 forks source link

How to run tests in different browsers? #165

Closed triblondon closed 10 years ago

triblondon commented 10 years ago

I maintain github.com/Financial-Times/polyfill-service, and am in the process of setting up browser testing for our polyfills. Since each polyfill has different browser support, I don't want to test all polyfills in the same set of browsers. I have a different test URL for each polyfill, so how is it possible to configure sauce-mocha to run each one in a different set of browsers?

Jonahss commented 10 years ago

I would just set them all up as separate grunt tasks. If you have a very large set, I would dynamically generate the tasks using your test-urls and a matching browser matrix for each. Then register them all with grunt.

triblondon commented 10 years ago

Sorry, I forgot to say thanks for this response. I think to simplify I will run all tests the same set of browsers, but only fail the build if the tests fail in a browser that a specific polyfill was intended to work in.

Jonahss commented 10 years ago

Well thats one approach. Thanks for replying :)

On Tue, Sep 30, 2014 at 2:40 AM, Andrew Betts notifications@github.com wrote:

Sorry, I forgot to say thanks for this response. I think to simplify I will run all tests the same set of browsers, but only fail the build if the tests fail in a browser that a specific polyfill was intended to work in.

— Reply to this email directly or view it on GitHub https://github.com/axemclion/grunt-saucelabs/issues/165#issuecomment-57289578 .

triblondon commented 10 years ago

The data is actually useful to us anyway to build compatibility tables, so there is some method to the madness :-)=

Jonahss commented 10 years ago

Ha that explains it :)

On Tue, Sep 30, 2014 at 1:53 PM, Andrew Betts notifications@github.com wrote:

The data is actually useful to us anyway to build compatibility tables, so there is some method to the madness :-)=

— Reply to this email directly or view it on GitHub https://github.com/axemclion/grunt-saucelabs/issues/165#issuecomment-57381029 .