intern.js 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // Learn more about configuring this file at
  2. // <https://github.com/theintern/intern/wiki/Configuring-Intern>.
  3. // These default settings work OK for most people. The options that *must* be
  4. // changed below are the packages, suites, excludeInstrumentation, and (if you
  5. // want functional tests) functionalSuites.
  6. define({
  7. // The port on which the instrumenting proxy will listen
  8. proxyPort: 9000,
  9. // A fully qualified URL to the Intern proxy
  10. proxyUrl: 'http://localhost:9000/',
  11. // Default desired capabilities for all environments. Individual capabilities
  12. // can be overridden by any of the specified browser environments in the
  13. // `environments` array below as well. See
  14. // https://code.google.com/p/selenium/wiki/DesiredCapabilities
  15. // for standard Selenium capabilities and
  16. // https://saucelabs.com/docs/additional-config#desired-capabilities
  17. // for Sauce Labs capabilities.
  18. // Note that the `build` capability will be filled in with the current commit
  19. // ID from the Travis CI environment
  20. // automatically
  21. capabilities: {
  22. 'selenium-version': '2.41.0'
  23. },
  24. // Browsers to run integration testing against. Note that version numbers must
  25. // be strings if used with Sauce OnDemand. Options that will be permutated are
  26. // browserName, version, platform, and platformVersion; any other capabilities
  27. // options specified for an environment will be copied as-is.
  28. environments: [
  29. { browserName: 'internet explorer', version: '11', platform: 'Windows 8.1' },
  30. { browserName: 'internet explorer', version: '10', platform: 'Windows 8' },
  31. { browserName: 'internet explorer', version: '9', platform: 'Windows 7' },
  32. { browserName: 'firefox', version: '28', platform: [ 'OS X 10.9', 'Windows 7', 'Linux' ] },
  33. { browserName: 'chrome', version: '34', platform: [ 'OS X 10.9', 'Windows 7', 'Linux' ] },
  34. { browserName: 'safari', version: '6', platform: 'OS X 10.8' },
  35. { browserName: 'safari', version: '7', platform: 'OS X 10.9' }
  36. ],
  37. // Maximum number of simultaneous integration tests that should be executed on
  38. // the remote WebDriver service.
  39. maxConcurrency: 3,
  40. // Name of the tunnel class to use for WebDriver tests
  41. tunnel: 'SauceLabsTunnel',
  42. // The desired AMD loader to use when running unit tests (client.html/client.js).
  43. // Omit to use the default Dojo loader.
  44. useLoader: {
  45. 'host-node': 'dojo/dojo',
  46. 'host-browser': 'node_modules/dojo/dojo.js'
  47. },
  48. // Configuration options for the module loader; any AMD configuration options
  49. // supported by the specified AMD loader can be used here.
  50. loader: {
  51. // Packages that should be registered with the loader in each testing environment
  52. packages: [
  53. { name: 'app', location: 'src/' },
  54. { name: 'tests', location: 'tests/' }
  55. ]
  56. },
  57. // Non-functional test suite(s) to run in each browser
  58. suites: [ 'tests/unit/ps' ],
  59. // Functional test suite(s) to run in each browser once non-functional tests are completed
  60. functionalSuites: [ /* 'myPackage/tests/functional' */ ],
  61. // A regular expression matching URLs to files that should not be included in code coverage analysis
  62. excludeInstrumentation: /^(?:tests|node_modules)\//
  63. });