Open Karma debug.html page on startup

前端 未结 3 1554
故里飘歌
故里飘歌 2021-01-04 11:24

The short version:

How do I start up Karma and have it open the debug.html file automatically in the same browser as the Karma start page?

3条回答
  •  自闭症患者
    2021-01-04 11:40

    You can use a customLauncher browser definition:

      customLaunchers: {
        ChromeDebugging: {
          base: 'Chrome',
          flags: [ '--remote-debugging-port=9333', '--auto-open-devtools-for-tabs', 'http://localhost:9876/debug.html' ]
        }
      }
    

    And use this browser in your karma config.

提交回复
热议问题