karma-jasmine-html-reporter icon indicating copy to clipboard operation
karma-jasmine-html-reporter copied to clipboard

Do not run headless if headfull detected

Open Cohaven opened this issue 1 year ago • 2 comments

Is there a way to turn off the headless test run if a headful test run is detected by opening the Karma server URL in the browser? This duplicate test running seems wasteful, especially when paired with something like karma-parallel.

Cohaven avatar Apr 21 '23 15:04 Cohaven

Can you clarify? I'm not sure I understand the question.

dfederm avatar Apr 21 '23 15:04 dfederm

When I look at the Karma server (Karma v6.4.1 server started at http://localhost:9878/), I see two runs, a Chrome headless and a Chrome headful/regular.

Screenshot 2023-04-21 at 11 43 50 AM

Is it possible to not run the headless one if I'm already running a regular one?

Cohaven avatar Apr 21 '23 15:04 Cohaven