mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-04 15:24:23 +01:00
75 lines
2.2 KiB
JavaScript
75 lines
2.2 KiB
JavaScript
|
// Karma configuration
|
||
|
// http://karma-runner.github.io/0.10/config/configuration-file.html
|
||
|
|
||
|
module.exports = function(config) {
|
||
|
config.set({
|
||
|
// base path, that will be used to resolve files and exclude
|
||
|
basePath: '',
|
||
|
|
||
|
// testing framework to use (jasmine/mocha/qunit/...)
|
||
|
frameworks: ['jasmine'],
|
||
|
|
||
|
files: [
|
||
|
// ------------------------------
|
||
|
// DEPENDENCIES
|
||
|
// ------------------------------
|
||
|
'demo/bower_components/jquery/jquery.js',
|
||
|
'demo/bower_components/angular/angular.js',
|
||
|
'demo/bower_components/angular-mocks/angular-mocks.js',
|
||
|
'demo/bower_components/angular-route/angular-route.js',
|
||
|
'demo/bower_components/angular-translate/angular-translate.js',
|
||
|
//'demo/bower_components/angular-scenario/angular-scenario.js',
|
||
|
//'node_modules/karma-ng-scenario/lib/adapter.js',
|
||
|
'src/unsavedChanges.js',
|
||
|
'test/unit/**/*.spec.js'
|
||
|
],
|
||
|
// preprocessors: {
|
||
|
// 'app/scripts/components/*/views/*.html': ['ng-html2js']
|
||
|
// },
|
||
|
|
||
|
ngHtml2JsPreprocessor: {
|
||
|
// strip this from the file path
|
||
|
stripPrefix: 'app/',
|
||
|
|
||
|
// make templates accessible in tests
|
||
|
moduleName: 'templates'
|
||
|
},
|
||
|
|
||
|
// list of files / patterns to exclude
|
||
|
exclude: [],
|
||
|
|
||
|
// web server port
|
||
|
port: 8080,
|
||
|
|
||
|
// level of logging
|
||
|
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
|
||
|
logLevel: config.LOG_INFO,
|
||
|
|
||
|
// enable / disable watching file and executing tests whenever any file changes
|
||
|
// @note our grunt tasks can over ride these settings. They are just default here.
|
||
|
// we do this with out auto_test grunt task.
|
||
|
autoWatch: false,
|
||
|
|
||
|
// Start these browsers, currently available:
|
||
|
// @note you must have the browser on the computer doing the testing
|
||
|
// - Chrome
|
||
|
// - ChromeCanary
|
||
|
// - Firefox
|
||
|
// - Opera
|
||
|
// - Safari (only Mac)
|
||
|
// - PhantomJS
|
||
|
// - IE (only Windows)
|
||
|
browsers: ['PhantomJS'],
|
||
|
|
||
|
// Continuous Integration mode
|
||
|
// if true, it capture browsers, run tests and exit
|
||
|
singleRun: true,
|
||
|
|
||
|
// reporters?
|
||
|
reporters: ['progress', 'osx'],
|
||
|
|
||
|
// provide green / red for apss / fail.
|
||
|
colors: true
|
||
|
|
||
|
});
|
||
|
};
|