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

example usage of sauce plugin options in a wct.conf.js file? #947

Closed
ckortekaas opened this issue Jan 27, 2015 · 2 comments
Closed

example usage of sauce plugin options in a wct.conf.js file? #947

ckortekaas opened this issue Jan 27, 2015 · 2 comments

Comments

@ckortekaas
Copy link

Hi,

Thanks for making WCT - it's great!

Just wondering how an example of how to setup wct.conf.js in the root dir of an app should look.

This doesn't seem to work with wct --sauce:

module.exports = {
  plugins: {sauce: { browsers: {
        browserName: "internet explorer",
        platform:    "Windows 8.1",
        version:     "11"
      }}}
};

It just gives:

'-plugins.sauce.browsers' expects a value
@ckortekaas
Copy link
Author

I figured it out. I was two issues:

1 - I needed to use 'wct --plugin sauce' on the command line
2 - the array/object structure should have been more like this:

module.exports = {
  verbose: true,
  browsers: [],
  plugins: {
    sauce: {
      browsers: [
      {
        browserName: "iphone",
        platform: "OS X 10.9",
        version: "8.1",
        deviceName: "iPhone Simulator",
        "device-orientation": "portrait"
      }
  ]}
}
};

@summisudhi
Copy link

Getting Could not find WCT plugin named "sauce" any suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants