test/intern.js
define([], function() {
'use strict';
// see extending config example at
// https://github.com/mozilla/fxa-content-server/blob/master/tests/intern.js
// if we ever need to deal with arguments
// var args = intern.args;
return {
// The port on which the instrumenting proxy will listen
proxyPort: 9000,
// A fully qualified URL to the Intern proxy
proxyUrl: 'http://localhost:9000/',
// https://theintern.github.io/intern/#option-filterErrorStack
filterErrorStack: true,
// 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: {
// Firefox Dev on SauceLabs does not like the version
// 'selenium-version': '2.41.0',
},
// Configuration options for the module loader; any AMD configuration options supported by the specified AMD loader
// can be used here
loaderOptions: {
// Packages that should be registered with the loader in each testing environment
packages: [
{ name: 'ally', location: 'dist/amd/' },
{ name: 'sinon', location: 'node_modules/sinon/lib', main: 'sinon.js' },
],
paths: {
'ally/util/logger': 'test/overrides/util.logger.override',
'css.escape': 'node_modules/css.escape/css.escape',
platform: 'node_modules/platform/platform',
},
},
// https://theintern.github.io/intern/#option-reporters
reporters: [
'Runner',
// see https://theintern.github.io/intern/#reporter-lcov
{
id: 'LcovHtml',
directory: 'reports/coverage/',
watermarks: {
statements: [ 50, 80 ],
lines: [ 50, 80 ],
functions: [ 50, 80 ],
branches: [ 50, 80 ],
},
},
{
id: 'Lcov',
filename: 'reports/lcov.info',
watermarks: {
statements: [ 50, 80 ],
lines: [ 50, 80 ],
functions: [ 50, 80 ],
branches: [ 50, 80 ],
},
},
{
id: 'JUnit',
filename: 'reports/junit.xml',
},
{
id: '../../../test/reporters/Errors',
filename: 'reports/errors.log',
},
],
// Non-functional test suite(s) to run in each browser
suites: [
'test/unit/*.test',
],
// Functional test suite(s) to run in each browser once non-functional tests are completed
functionalSuites: [
'test/functional/prepare',
// 'test/functional/*.debug',
'test/functional/*.test',
],
// A regular expression matching URLs to files that should not be included in code coverage analysis
excludeInstrumentation: /^(?:tests|test|examples|node_modules|dist\/ally\.min)\//,
};
});