karma-chrome-launcher icon indicating copy to clipboard operation
karma-chrome-launcher copied to clipboard

Open a new instance of browser

Open hannah23280 opened this issue 6 years ago • 3 comments

Is there any configuration for karma to launch browser in a separate instance? I usually has chrome open for my own surfing web purpose. When i startup karma, it always open a new tab in the chrome which i have opened. For some reason, this is not what i want. I need it to open in a separate window

hannah23280 avatar Sep 01 '17 13:09 hannah23280

@hanct that's not supposed to happen. Are you passing the same --data-dir as your personal chrome to the karma chrome?

rogeriopvl avatar Sep 15 '17 16:09 rogeriopvl

Hey @rogeriopvl I have the same question. In my karma.conf.js I have browsers: ['Chrome'] listed. Running ng test opens a second instance of Chrome for Karma. (using the default Angular CLI testing settings with Karma-Chrome-Launcher)

BenRacicot avatar Oct 20 '18 14:10 BenRacicot

@BenRacicot that's actually the opposite of what @hanct was mentioning. So it's the expected behavior. You shouldn't use your personal chrome instance because the results may be tainted by installed extensions, configs etc.

rogeriopvl avatar Nov 19 '18 15:11 rogeriopvl