karma test runner not running any tests

前端 未结 3 1958
慢半拍i
慢半拍i 2021-02-07 07:42

I\'m using karma with jasmine and followed online guide by installing using

npm install --save-dev karma

and other necessities

i ran

3条回答
  •  甜味超标
    2021-02-07 08:17

    Following configuration works for me -

     reporters: ['progress', 'kjhtml'],
            port: 9876,
            colors: true,
            logLevel: config.LOG_INFO, // config.LOG_DEBUG,
            autoWatch: true,
            browsers: ['ChromeNS'],
            singleRun: false,
            customLaunchers: {
                ChromeHeadlessNS: {
                    base: 'ChromeHeadless',
                    flags: ['--no-sandbox', '--disable-gpu']
                },
                ChromeNS: {
                    base: 'Chrome',
                    flags: ['--no-sandbox', '--disable-gpu']
                }
            }
    

提交回复
热议问题