Advertisement
bogdanbiv

Intern configuration DojoCalDemo

Aug 10th, 2014
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Intern configuration
  2. define({
  3.   // The port on which the instrumenting proxy will listen
  4.   proxyPort: 9000,
  5.  
  6.   // A fully qualified URL to the Intern proxy
  7.   proxyUrl: 'http://localhost:9000/',
  8.  
  9.   // Default desired capabilities for all environments. Individual capabilities can be overridden by any of the
  10.   // specified browser environments in the `environments` array below as well. See
  11.   // https://code.google.com/p/selenium/wiki/DesiredCapabilities for standard Selenium capabilities and
  12.   // https://saucelabs.com/docs/additional-config#desired-capabilities for Sauce Labs capabilities.
  13.   // Note that the `build` capability will be filled in with the current commit ID from the Travis CI environment
  14.   // automatically
  15.   capabilities: {
  16.       'selenium-version': '2.39.0',
  17.       'idle-timeout': 30
  18.   },
  19.  
  20.   // Browsers to run integration testing against. Note that version numbers must be strings if used with Sauce
  21.   // OnDemand. Options that will be permutated are browserName, version, platform, and platformVersion; any other
  22.   // capabilities options specified for an environment will be copied as-is
  23.   environments: [
  24.       { browserName: 'chrome', version: '34', platform: [ 'LINUX', /*'MAC 10.8', 'Windows 7'*/ ] },
  25.   ],
  26.  
  27.   // Maximum number of simultaneous integration tests that should be executed on the remote WebDriver service
  28.   maxConcurrency: 3,
  29.  
  30.   // Whether or not to start Sauce Connect before running tests
  31.   useSauceConnect: false,
  32.  
  33.   // Connection information for the remote WebDriver service. If using Sauce Labs, keep your username and password
  34.   // in the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables unless you are sure you will NEVER be
  35.   // publishing this configuration file somewhere
  36.   webdriver: {
  37.       host: 'localhost',
  38.       port: 4444
  39.   },
  40.  
  41.   // Configuration options for the module loader; any AMD configuration options supported by the specified AMD loader
  42.     // can be used here
  43.   loader: {
  44.       // Packages that should be registered with the loader in each testing environment
  45.       packages: [
  46.       /*{ name: 'all', location: './all' },*/
  47.               { name: 'dojo', location: '/public/components/dojo' },
  48.               { name: 'dojox', location: '/public/components/dojox' },
  49.               { name: 'dijit', location: '/public/components/dijit' },
  50.               { name: 'demos', location: '/public/demos' }
  51.       ],
  52.       paths: { "dojox/calendar": "/public/components/dojo-calendar" },
  53.       cacheBust: true
  54.   },
  55.  
  56.   // Non-functional test suite(s) to run in each browser
  57.   suites: [ 'tests/all' ],
  58.  
  59.   // Functional test suite(s) to run in each browser once non-functional tests are completed
  60.   functionalSuites: [ 'tests/functional/todo' ], // Fails!
  61.  
  62.   // A regular expression matching URLs to files that should not be included in code coverage analysis
  63.   /* excludeInstrumentation: /(?:tests|components|node_modules|intern|dojo|dojox|dijit)\// */
  64. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement