Framework for building UIs for OpenStack projects dealing with complex input data
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

karma-unit.conf.js 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * Copyright (c) 2013 Hewlett-Packard Development Company, L.P.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may
  5. * not use this file except in compliance with the License. You may obtain
  6. * a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations
  14. * under the License.
  15. */
  16. module.exports = function (config) {
  17. 'use strict';
  18. config.set({
  19. port: 9876,
  20. basePath: '',
  21. frameworks: ['jasmine'],
  22. browsers: [ 'PhantomJS', 'Chrome'],
  23. plugins: [
  24. 'karma-jasmine',
  25. 'karma-phantomjs-launcher',
  26. 'karma-chrome-launcher',
  27. 'karma-ng-html2js-preprocessor'
  28. ],
  29. files: [
  30. 'bower_components/jquery/dist/jquery.min.js',
  31. 'bower_components/angular/angular.js',
  32. 'bower_components/angular-mocks/angular-mocks.js',
  33. 'merlin/static/merlin/js/libs/underscore/underscore-min.js',
  34. 'merlin/static/merlin/js/libs/js-yaml/dist/js-yaml.min.js',
  35. 'merlin/static/merlin/js/custom-libs/barricade.js',
  36. 'merlin/static/merlin/js/custom-libs/ui-bootstrap-tpls-0.12.1.js',
  37. // explicitly require first module definition file to avoid errors
  38. 'merlin/static/merlin/js/merlin.init.js',
  39. 'merlin/static/merlin/js/merlin.*.js',
  40. 'merlin/static/merlin/templates/**/*.html',
  41. 'merlin/test/js/*Spec.js',
  42. // explicitly require first module definition file to avoid errors
  43. 'extensions/mistral/static/mistral/js/mistral.init.js',
  44. 'extensions/mistral/static/mistral/js/mistral.*.js',
  45. 'extensions/mistral/test/js/*Spec.js'
  46. ],
  47. preprocessors: {
  48. 'merlin/static/merlin/templates/**/*.html': ['ng-html2js']
  49. },
  50. ngHtml2JsPreprocessor: {
  51. stripPrefix: 'merlin',
  52. moduleName: 'preprocessedTemplates'
  53. },
  54. exclude: [
  55. ],
  56. singleRun: true
  57. });
  58. };