Advertisement
bogdanbiv

intern

Mar 22nd, 2014
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Learn more about configuring this file at <https://github.com/theintern/intern/wiki/Configuring-Intern>.
  2. // These default settings work OK for most people. The options that *must* be changed below are the
  3. // packages, suites, excludeInstrumentation, and (if you want functional tests) functionalSuites.
  4. define({
  5.     // The port on which the instrumenting proxy will listen
  6.     proxyPort: 9000,
  7.  
  8.     // A fully qualified URL to the Intern proxy
  9.     proxyUrl: 'http://localhost:9000/',
  10.  
  11.     // Default desired capabilities for all environments. Individual capabilities can be overridden by any of the
  12.     // specified browser environments in the `environments` array below as well. See
  13.     // https://code.google.com/p/selenium/wiki/DesiredCapabilities for standard Selenium capabilities and
  14.     // https://saucelabs.com/docs/additional-config#desired-capabilities for Sauce Labs capabilities.
  15.     // Note that the `build` capability will be filled in with the current commit ID from the Travis CI environment
  16.     // automatically
  17.     capabilities: {
  18.         'selenium-version': '2.39.0',
  19.                 'idle-timeout': 30
  20.     },
  21.  
  22.     // Browsers to run integration testing against. Note that version numbers must be strings if used with Sauce
  23.     // OnDemand. Options that will be permutated are browserName, version, platform, and platformVersion; any other
  24.     // capabilities options specified for an environment will be copied as-is
  25.     environments: [
  26.         /*{ browserName: 'internet explorer', version: '11', platform: 'Windows 8.1' },
  27.         { browserName: 'internet explorer', version: '10', platform: 'Windows 8' },
  28.         { browserName: 'internet explorer', version: '9', platform: 'Windows 7' },
  29.         { browserName: 'firefox', version: '25', platform: [ 'OS X 10.6', 'Windows 7' ] },*/
  30.         /* { browserName: 'firefox', version: '27', platform: 'LINUX' }, */
  31.         { browserName: 'chrome', version: '', platform: [ 'LINUX'/*, 'OS X 10.6', 'Windows 7'*/ ] },
  32.         /*{ browserName: 'safari', version: '6', platform: 'OS X 10.8' }*/
  33.     ],
  34.  
  35.     // Maximum number of simultaneous integration tests that should be executed on the remote WebDriver service
  36.     maxConcurrency: 3,
  37.  
  38.     // Whether or not to start Sauce Connect before running tests
  39.     useSauceConnect: false,
  40.  
  41.     // Connection information for the remote WebDriver service. If using Sauce Labs, keep your username and password
  42.     // in the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables unless you are sure you will NEVER be
  43.     // publishing this configuration file somewhere
  44.     webdriver: {
  45.         host: 'localhost',
  46.         port: 4444
  47.     },
  48.  
  49.     // The desired AMD loader to use when running unit tests (client.html/client.js). Omit to use the default Dojo
  50.     // loader
  51.     useLoader: {
  52.         'host-node': '../dojo/dojo.js',
  53.         'host-browser': '/dojo_playground/dojo/dojo.js'
  54.     },
  55.  
  56.     // Configuration options for the module loader; any AMD configuration options supported by the specified AMD loader
  57.     // can be used here
  58.     loader: {
  59.                 baseUrl: 'http://localhost:8081/',
  60.         // Packages that should be registered with the loader in each testing environment
  61.         packages: [ /*{ name: 'myPackage', location: '.' }*/
  62.                   { name: "demo", location: "dojo_playground/tutorials/demo"},
  63.                   // { name: "authorBar", location: "dojo_playground/tutorials/demo/" },
  64.                 ]
  65.     },
  66.  
  67.     // Non-functional test suite(s) to run in each browser
  68.     suites: [ 'demo/intests/data', /*'demo/intests/api'*/ /* 'myPackage/tests/foo', 'myPackage/tests/bar' */ ],
  69.  
  70.     // Functional test suite(s) to run in each browser once non-functional tests are completed
  71.     functionalSuites: [ /*'demo/intests/e2e'*/ /* 'myPackage/tests/functional' */ ],
  72.  
  73.     // A regular expression matching URLs to files that should not be included in code coverage analysis
  74.     excludeInstrumentation: /^^(?:\.nvm|npm_modules|node_modules)\// // also exclude .nvm, npm_modules
  75. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement