You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
4.2 KiB
88 lines
4.2 KiB
// Learn more about configuring this file at <https://github.com/theintern/intern/wiki/Configuring-Intern>. |
|
// These default settings work OK for most people. The options that *must* be changed below are the |
|
// packages, suites, excludeInstrumentation, and (if you want functional tests) functionalSuites. |
|
|
|
var dojoConfig = { |
|
async: true, |
|
requestProvider: 'dojo/request/registry' |
|
}; |
|
|
|
define([ 'intern/dojo/has' ], function (has) { |
|
return { |
|
// The port on which the instrumenting proxy will listen |
|
proxyPort: 9000, |
|
|
|
// A fully qualified URL to the Intern proxy |
|
proxyUrl: 'http://localhost:9001/', |
|
|
|
// Default desired capabilities for all environments. Individual capabilities can be overridden by any of the |
|
// specified browser environments in the `environments` array below as well. See |
|
// https://code.google.com/p/selenium/wiki/DesiredCapabilities for standard Selenium capabilities and |
|
// https://saucelabs.com/docs/additional-config#desired-capabilities for Sauce Labs capabilities. |
|
// Note that the `build` capability will be filled in with the current commit ID from the Travis CI environment |
|
// automatically |
|
capabilities: { |
|
'selenium-version': '2.48.2' |
|
}, |
|
|
|
// Browsers to run integration testing against. Note that version numbers must be strings if used with Sauce |
|
// OnDemand. Options that will be permutated are browserName, version, platform, and platformVersion; any other |
|
// capabilities options specified for an environment will be copied as-is |
|
environments: [ |
|
/* NOTE: Leaving Edge and old IE commented out intentionally for now */ |
|
/*{ browserName: 'edge', version: '20', platform: 'Windows 10', 'prerun': 'http://localhost:9001/tests-intern/support/prerun.bat' },*/ |
|
{ browserName: 'internet explorer', version: '11', platform: ['Windows 10', 'Windows 8.1'], 'prerun': 'http://localhost:9001/tests-intern/support/prerun.bat' }, |
|
{ browserName: 'internet explorer', version: '10', platform: 'Windows 8', 'prerun': 'http://localhost:9001/tests-intern/support/prerun.bat' }, |
|
{ browserName: 'internet explorer', version: [ '9', '10' ], platform: 'Windows 7', 'prerun': 'http://localhost:9001/tests-intern/support/prerun.bat' }, |
|
/*{ browserName: 'internet explorer', version: [ '6', '7', '8' ], platform: 'Windows XP', 'prerun': 'http://localhost:9001/tests-intern/support/prerun.bat' },*/ |
|
{ browserName: 'firefox', version: '43', platform: [ 'OS X 10.10', 'Windows 10', 'Windows 7', 'Windows XP', 'Linux' ] }, |
|
{ browserName: 'chrome', version: '', platform: [ 'Linux', 'OS X 10.8', 'OS X 10.9', 'Windows XP', 'Windows 7', 'Windows 8', 'Windows 8.1' ] }, |
|
{ browserName: 'safari', version: '6', platform: 'OS X 10.8' }, |
|
{ browserName: 'safari', version: '7', platform: 'OS X 10.9' }, |
|
{ browserName: 'safari', version: '8', platform: 'OS X 10.10' }, |
|
{ browserName: 'safari', version: '9', platform: 'OS X 10.11' } |
|
], |
|
|
|
// Maximum number of simultaneous integration tests that should be executed on the remote WebDriver service |
|
maxConcurrency: 3, |
|
|
|
// Tunnel |
|
tunnel: 'SauceLabsTunnel', |
|
|
|
// Connection information for the remote WebDriver service. If using Sauce Labs, keep your username and password |
|
// in the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables unless you are sure you will NEVER be |
|
// publishing this configuration file somewhere |
|
webdriver: { |
|
host: 'localhost', |
|
port: 4444 |
|
}, |
|
|
|
loaders: { |
|
'host-browser': '../../../dojo/dojo.js' |
|
}, |
|
|
|
// Configuration options for the module loader; any AMD configuration options supported by the specified AMD |
|
// loader can be used here |
|
loaderOptions: { |
|
baseUrl: has('host-browser') ? '../../../' : undefined, |
|
packages: [ |
|
{ name: 'dojo', location: 'dojo' }, |
|
{ name: 'dojox', location: 'dojox' } |
|
]/* |
|
// Packages that should be registered with the loader in each testing environment |
|
packages: [ { name: 'dojo-testing', location: '.' } ], |
|
map: { |
|
'dojo-testing': { |
|
'dojo': 'dojo-testing', |
|
'intern/dojo': 'intern/node_modules/dojo' |
|
} |
|
}*/ |
|
}, |
|
|
|
// Non-functional test suite(s) to run in each browser |
|
suites: [ 'dojox/store/tests/all' ], |
|
|
|
// A regular expression matching URLs to files that should not be included in code coverage analysis |
|
excludeInstrumentation: /^(?:node_modules|tests-intern|tests)\// |
|
}; |
|
});
|
|
|