|
| 1 | +// Karma configuration |
| 2 | +// Generated on Wed Jun 13 2018 14:38:44 GMT+0200 (CEST) |
| 3 | + |
| 4 | +module.exports = function(config) { |
| 5 | + config.set({ |
| 6 | + |
| 7 | + // base path that will be used to resolve all patterns (eg. files, exclude) |
| 8 | + basePath: 'webapp', |
| 9 | + |
| 10 | + // frameworks to use |
| 11 | + // available frameworks: https://npmjs.org/browse/keyword/karma-adapter |
| 12 | + frameworks: ['qunit', 'openui5'], |
| 13 | + |
| 14 | + openui5: { |
| 15 | + path: 'http://localhost:8080/resources/sap-ui-core.js' |
| 16 | + }, |
| 17 | + |
| 18 | + client: { |
| 19 | + openui5: { |
| 20 | + config: { |
| 21 | + theme: 'sap_belize', |
| 22 | + language: 'EN', |
| 23 | + bindingSyntax: 'complex', |
| 24 | + compatVersion: 'edge', |
| 25 | + preload: 'async', |
| 26 | + resourceroots: {'sap.ui.demo.todo': './base'} |
| 27 | + }, |
| 28 | + tests: [ |
| 29 | + 'sap/ui/demo/todo/test/unit/allTests', |
| 30 | + 'sap/ui/demo/todo/test/integration/AllJourneys' |
| 31 | + ] |
| 32 | + }, |
| 33 | + clearContext: false, |
| 34 | + qunit: { |
| 35 | + showUI: true |
| 36 | + } |
| 37 | + }, |
| 38 | + |
| 39 | + // list of files / patterns to load in the browser |
| 40 | + files: [ |
| 41 | + { pattern: '**', included: false, served: true, watched: true } |
| 42 | + ], |
| 43 | + |
| 44 | + // test results reporter to use |
| 45 | + // possible values: 'dots', 'progress' |
| 46 | + // available reporters: https://npmjs.org/browse/keyword/karma-reporter |
| 47 | + reporters: ['progress'], |
| 48 | + |
| 49 | + // level of logging |
| 50 | + // possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG |
| 51 | + logLevel: config.LOG_INFO, |
| 52 | + |
| 53 | + // level of browser logging |
| 54 | + browserConsoleLogOptions: { |
| 55 | + level: 'warn' |
| 56 | + }, |
| 57 | + |
| 58 | + // enable / disable watching file and executing tests whenever any file changes |
| 59 | + autoWatch: true, |
| 60 | + |
| 61 | + // start these browsers |
| 62 | + // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher |
| 63 | + browsers: ['Chrome'], |
| 64 | + |
| 65 | + // Continuous Integration mode |
| 66 | + // if true, Karma captures browsers, runs the tests and exits |
| 67 | + singleRun: false, |
| 68 | + |
| 69 | + }); |
| 70 | +}; |
0 commit comments