-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d35d61
commit bde6673
Showing
9 changed files
with
136 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// Karma configuration | ||
// Generated on Mon Jun 08 2015 15:45:45 GMT-0700 (PDT) | ||
|
||
module.exports = { | ||
// base path that will be used to resolve all patterns (eg. files, exclude) | ||
basePath: '', | ||
|
||
// frameworks to use | ||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter | ||
frameworks: ['mocha', 'chai', 'commonjs'], | ||
|
||
// list of files / patterns to load in the browser | ||
files: [ | ||
'src/**/*.js', | ||
'polyfill/**/*.js', | ||
'test/**/*.js' | ||
], | ||
|
||
// list of files to exclude | ||
exclude: [ | ||
'src/**/bundle.js' | ||
], | ||
|
||
// preprocess matching files before serving them to the browser | ||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor | ||
preprocessors: { | ||
'src/**/*.js': ['coverage', 'commonjs'], | ||
'polyfill/**/*.js': ['commonjs'], | ||
'test/**/*.js': ['commonjs'] | ||
}, | ||
|
||
coverageReporter: { | ||
reporters: [{ | ||
type: 'lcov', | ||
dir:'coverage/' | ||
}, { | ||
type: 'json', | ||
dir:'coverage/', | ||
file : 'coverage.json' | ||
}] | ||
}, | ||
|
||
thresholdReporter: { | ||
statements: 100, | ||
branches: 100, | ||
functions: 100, | ||
lines: 100 | ||
}, | ||
|
||
// test results reporter to use | ||
// possible values: 'dots', 'progress' | ||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter | ||
reporters: ['progress', 'coverage', 'threshold'], | ||
|
||
// web server port | ||
port: 9876, | ||
|
||
// enable / disable colors in the output (reporters and logs) | ||
colors: true, | ||
|
||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch: false, | ||
|
||
// start these browsers | ||
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher | ||
browsers: ['Chrome'], | ||
|
||
// Continuous Integration mode | ||
// if true, Karma captures browsers, runs the tests and exits | ||
singleRun: true | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
var customLaunchers = { | ||
'SL_Chrome': { | ||
base: 'SauceLabs', | ||
browserName: 'chrome' | ||
}, | ||
'SL_InternetExplorer': { | ||
base: 'SauceLabs', | ||
browserName: 'internet explorer', | ||
version: '10' | ||
}, | ||
'SL_FireFox': { | ||
base: 'SauceLabs', | ||
browserName: 'firefox' | ||
} | ||
}; | ||
|
||
var conf = Object.assign( require('./karma.conf.base.js'), { | ||
coverageReporter: { | ||
reporters: [{ | ||
type: 'lcov', | ||
dir: 'coverage/', | ||
subdir: '.' | ||
}, { | ||
type: 'json', | ||
dir: 'coverage/', | ||
subdir: '.', | ||
file: 'coverage.json' | ||
}] | ||
}, | ||
junitReporter: { | ||
outputFile: 'test-results.xml', | ||
suite: '' | ||
}, | ||
reporters: [ | ||
'progress', | ||
'coverage', | ||
'threshold', | ||
'junit', | ||
'saucelabs' | ||
], | ||
sauceLabs: { | ||
testName: 'accessible-dropdown' | ||
}, | ||
captureTimeout: 120000, | ||
customLaunchers: customLaunchers, | ||
browsers: Object.keys(customLaunchers) | ||
}) | ||
|
||
module.exports = function(config) { | ||
config.set(conf); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
var conf = require('./karma.conf.base.js'); | ||
|
||
module.exports = function(config) { | ||
config.set(conf); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.