2014-03-21 14:45:59 -07:00
|
|
|
// Karma configuration
|
|
|
|
// Generated on Fri Mar 21 2014 17:52:41 GMT-0300 (ART)
|
|
|
|
|
|
|
|
module.exports = function(config) {
|
|
|
|
config.set({
|
|
|
|
|
|
|
|
// 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'],
|
|
|
|
|
|
|
|
|
|
|
|
// list of files / patterns to load in the browser
|
|
|
|
files: [
|
2014-06-03 06:10:03 -07:00
|
|
|
//Configs
|
|
|
|
'config.js',
|
|
|
|
|
2014-03-21 14:45:59 -07:00
|
|
|
'lib/angular/angular.min.js',
|
|
|
|
'lib/angular-mocks/angular-mocks.js',
|
2014-06-03 06:10:03 -07:00
|
|
|
'lib/moment/moment.js',
|
2014-07-31 18:49:11 -07:00
|
|
|
'lib/ng-idle/angular-idle.min.js',
|
2014-06-03 06:10:03 -07:00
|
|
|
'lib/angular-moment/angular-moment.js',
|
|
|
|
'lib/qrcode-generator/js/qrcode.js',
|
|
|
|
'lib/angular-qrcode/qrcode.js',
|
|
|
|
'lib/angular-route/angular-route.min.js',
|
|
|
|
'lib/angular-foundation/mm-foundation.min.js',
|
|
|
|
'lib/angular-foundation/mm-foundation-tpls.min.js',
|
2014-06-09 16:46:40 -07:00
|
|
|
'lib/peerjs/peer.js',
|
2014-08-19 11:30:16 -07:00
|
|
|
'lib/bitcore.js',
|
2014-06-03 06:10:03 -07:00
|
|
|
'lib/crypto-js/rollups/sha256.js',
|
|
|
|
'lib/crypto-js/rollups/pbkdf2.js',
|
|
|
|
'lib/crypto-js/rollups/aes.js',
|
|
|
|
'lib/file-saver/FileSaver.js',
|
2014-06-04 16:17:45 -07:00
|
|
|
'lib/socket.io-client/socket.io.js',
|
2014-06-03 06:10:03 -07:00
|
|
|
'lib/sjcl.js',
|
|
|
|
'lib/ios-imagefile-megapixel/megapix-image.js',
|
|
|
|
'lib/qrcode-decoder-js/lib/qrcode-decoder.min.js',
|
|
|
|
'js/copayBundle.js',
|
2014-04-23 09:21:33 -07:00
|
|
|
|
2014-06-03 06:10:03 -07:00
|
|
|
//App-specific Code
|
|
|
|
'js/app.js',
|
|
|
|
'js/routes.js',
|
2014-08-13 15:42:04 -07:00
|
|
|
'js/services/*.js',
|
2014-06-03 06:10:03 -07:00
|
|
|
'js/directives.js',
|
|
|
|
'js/filters.js',
|
2014-06-03 07:24:02 -07:00
|
|
|
'js/controllers/*.js',
|
2014-06-03 13:42:36 -07:00
|
|
|
'js/init.js',
|
|
|
|
|
2014-06-18 09:01:50 -07:00
|
|
|
//Test-Specific Code
|
|
|
|
'lib/chai/chai.js',
|
|
|
|
'test/lib/chai-should.js',
|
|
|
|
'test/lib/chai-expect.js',
|
|
|
|
'test/mocks/FakeWallet.js',
|
2014-08-11 14:08:18 -07:00
|
|
|
'test/mocks/FakePayProServer.js',
|
2014-06-24 08:36:32 -07:00
|
|
|
|
2014-06-18 09:01:50 -07:00
|
|
|
'test/mocha.conf.js',
|
2014-06-03 13:42:36 -07:00
|
|
|
|
|
|
|
//test files
|
2014-08-21 16:26:02 -07:00
|
|
|
'test/test.*.js',
|
2014-08-21 15:53:03 -07:00
|
|
|
|
|
|
|
'test/unit/**/*.js',
|
2014-08-21 15:38:39 -07:00
|
|
|
|
2014-03-21 14:45:59 -07:00
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
// list of files to exclude
|
2014-06-03 06:10:03 -07:00
|
|
|
exclude: [],
|
2014-03-21 14:45:59 -07:00
|
|
|
|
|
|
|
|
|
|
|
// preprocess matching files before serving them to the browser
|
|
|
|
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
|
|
|
preprocessors: {
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// test results reporter to use
|
|
|
|
// possible values: 'dots', 'progress'
|
|
|
|
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
|
|
|
reporters: ['progress'],
|
|
|
|
|
|
|
|
|
|
|
|
// web server port
|
|
|
|
port: 9876,
|
|
|
|
|
|
|
|
|
|
|
|
// enable / disable colors in the output (reporters and logs)
|
|
|
|
colors: true,
|
|
|
|
|
|
|
|
|
|
|
|
// level of logging
|
|
|
|
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
|
|
|
logLevel: config.LOG_INFO,
|
|
|
|
|
|
|
|
|
|
|
|
// enable / disable watching file and executing tests whenever any file changes
|
|
|
|
autoWatch: true,
|
|
|
|
|
|
|
|
|
|
|
|
// start these browsers
|
|
|
|
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
2014-08-26 11:33:54 -07:00
|
|
|
browsers: ['Firefox'],
|
2014-03-21 14:45:59 -07:00
|
|
|
|
|
|
|
|
|
|
|
// Continuous Integration mode
|
|
|
|
// if true, Karma captures browsers, runs the tests and exits
|
2014-04-23 09:21:33 -07:00
|
|
|
singleRun: false,
|
|
|
|
|
|
|
|
// if browser doesn't capture output in given timeout (ms), kill it
|
|
|
|
captureTimeout: 60000
|
2014-03-21 14:45:59 -07:00
|
|
|
});
|
|
|
|
};
|