Search code examples
polymerpolymer-1.0saucelabsweb-component-tester

Polymer web component tester: multiple sauce configurations?


I'm using SauceLabs for my web component tests through the 'sauce' plugin in the web component tester. I'd like to use this plugin with different configurations depending which branch is being built on my CI.

I.E.: Latest chrome only on dev branches, and the whole battery of browsers/OS on master/staging branches (with deploy env.)

How can I achieve that?


Solution

  • Copy a template file before you start wct

    // Test master branch
    $ cp wct.conf.master.json wct.conf.json && wct
    
    // Test feature branch
    $ cp wct.conf.feature.json wct.conf.json && wct