github.com/ouraigua/jenkins-library@v0.0.0-20231028010029-fbeaf2f3aa9b/integration/testdata/TestKarmaIntegration/karma.conf.js (about)

     1  // karma.conf.js
     2  module.exports = function(config) {
     3    config.set({
     4      basePath : "./",
     5          frameworks : [ "qunit", "openui5" ],
     6          files : [       
     7              {
     8                  pattern : "src/frontend/test/karma-qunit.js", included: true
     9              },
    10              {
    11                  pattern : "src/frontend/test/integration/AllJourneys.js", included: true
    12              },
    13              {
    14                  pattern : "src/frontend/**/*", included : false
    15              }
    16          ],
    17          browsers: ['chrome_selenium'],
    18  
    19          hostname: 'karma',
    20          customLaunchers: {
    21              chrome_selenium: {
    22                  base: 'WebDriver',
    23                  config: {
    24                       hostname: 'selenium',
    25                       port: 4444
    26                  },
    27                  browserName: 'chrome',
    28                  name: 'Chrome'
    29              },
    30          },
    31          port : 9876,
    32          logLevel : "DEBUG",
    33          autoWatch : false,
    34          singleRun : true,
    35          browserNoActivityTimeout : 40000,
    36          browserDisconnectTolerance: 2,
    37  
    38          openui5 : {
    39              path : "https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
    40          },
    41          client: {
    42              openui5 : {
    43                  config : {
    44                      theme : "sap_bluecrystal",
    45                      resourceroots : {
    46                      'sap.ui.piper.test': '/base/src/frontend/test',
    47                      'sap.ui.piper.controller': '/base/src/frontend/controller',
    48                      'sap.ui.piper': '/base/src/frontend'
    49                      }
    50                  }
    51              },
    52          }
    53      }   
    54    );
    55  };