|
| 1 | +export const proxyPort = 9000; |
| 2 | + |
| 3 | +// A fully qualified URL to the Intern proxy |
| 4 | +export const proxyUrl = 'http://localhost:9000/'; |
| 5 | + |
| 6 | +// Default desired capabilities for all environments. Individual capabilities can be overridden by any of the |
| 7 | +// specified browser environments in the `environments` array below as well. See |
| 8 | +// https://code.google.com/p/selenium/wiki/DesiredCapabilities for standard Selenium capabilities and |
| 9 | +// https://saucelabs.com/docs/additional-config#desired-capabilities for Sauce Labs capabilities. |
| 10 | +// Note that the `build` capability will be filled in with the current commit ID from the Travis CI environment |
| 11 | +// automatically |
| 12 | +export const capabilities = { |
| 13 | + 'browserstack.debug': false, |
| 14 | + project: 'Dojo 2', |
| 15 | + name: 'dojo-widgets' |
| 16 | +}; |
| 17 | + |
| 18 | +// Browsers to run integration testing against. Note that version numbers must be strings if used with Sauce |
| 19 | +// OnDemand. Options that will be permutated are browserName, version, platform, and platformVersion; any other |
| 20 | +// capabilities options specified for an environment will be copied as-is |
| 21 | +export const environments = [ |
| 22 | + { browserName: 'internet explorer', version: [ '10', '11' ], platform: 'WINDOWS' }, |
| 23 | + { browserName: 'firefox', platform: 'WINDOWS' }, |
| 24 | + { browserName: 'chrome', platform: 'WINDOWS' }/*, |
| 25 | + { browserName: 'Safari', version: '9', platform: 'OS X' }*/ |
| 26 | +]; |
| 27 | + |
| 28 | +// Maximum number of simultaneous integration tests that should be executed on the remote WebDriver service |
| 29 | +export const maxConcurrency = 2; |
| 30 | + |
| 31 | +// Name of the tunnel class to use for WebDriver tests |
| 32 | +export const tunnel = 'BrowserStackTunnel'; |
| 33 | + |
| 34 | +// Support running unit tests from a web server that isn't the intern proxy |
| 35 | +export const initialBaseUrl: string | null = (function () { |
| 36 | + if (typeof location !== 'undefined' && location.pathname.indexOf('__intern/') > -1) { |
| 37 | + return '/'; |
| 38 | + } |
| 39 | + return null; |
| 40 | +})(); |
| 41 | + |
| 42 | +// The desired AMD loader to use when running unit tests (client.html/client.js). Omit to use the default Dojo |
| 43 | +// loader |
| 44 | +export const loaders = { |
| 45 | + 'host-browser': 'node_modules/@dojo/loader/loader.js', |
| 46 | + 'host-node': '@dojo/loader' |
| 47 | +}; |
| 48 | + |
| 49 | +// Configuration options for the module loader; any AMD configuration options supported by the specified AMD loader |
| 50 | +// can be used here |
| 51 | +export const loaderOptions = { |
| 52 | + // Packages that should be registered with the loader in each testing environment |
| 53 | + packages: [ |
| 54 | + { name: 'src', location: '_build/src' }, |
| 55 | + { name: 'tests', location: '_build/tests' }, |
| 56 | + { name: 'dojo', location: 'node_modules/intern/node_modules/dojo' }, |
| 57 | + { name: '@dojo', location: 'node_modules/@dojo' } |
| 58 | + ] |
| 59 | +}; |
| 60 | + |
| 61 | +// Non-functional test suite(s) to run in each browser |
| 62 | +export const suites = [ 'tests/unit/all' ]; |
| 63 | + |
| 64 | +// Functional test suite(s) to run in each browser once non-functional tests are completed |
| 65 | +export const functionalSuites = [ 'tests/functional/all' ]; |
| 66 | + |
| 67 | +// A regular expression matching URLs to files that should not be included in code coverage analysis |
| 68 | +export const excludeInstrumentation = /(?:node_modules|bower_components|tests)[\/\\]/; |
0 commit comments