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

Launching 10 instances of safari when one would do

Open Dakuan opened this issue 11 years ago • 15 comments

Since installing Mavericks, Karma has got very keen on Safari, and launches 10 instances. Additionally, it doesn't close them after the tests have executed. I have to manually close one of the tabs, and then they all go. Super odd!

image

Dakuan avatar Oct 31 '13 06:10 Dakuan

This isn't isolated to Mavericks. I've had similar issues on Mountain Lion. It seems that when opening a new Safari instance, previous runs of karma are present in the old tabs which are also opened, and seem to restart.

One thing I've done that seems to have helped is changing my Safari preferences to always open new windows and tabs with an empty page (Preferences>General).

lennym avatar Nov 01 '13 16:11 lennym

I've had success with defaults write com.apple.Safari ApplePersistenceIgnoreState YES on Mavericks

dfreedm avatar Nov 14 '13 00:11 dfreedm

thanks @azakus that totally worked for me on Mavericks :)

easternbloc avatar Nov 20 '13 17:11 easternbloc

ditto!

On 20 November 2013 17:40, Ben Marvell [email protected] wrote:

thanks @azakus https://github.com/azakus that totally worked for me on Mavericks :)

— Reply to this email directly or view it on GitHubhttps://github.com/karma-runner/karma-safari-launcher/issues/6#issuecomment-28910975 .

// Dominic Barker // github http://dakuan.github.com | linkedInhttp://www.linkedin.com/profile/view?id=87278307&trk=tab_pro | twitter http://twitter.com/#!/mostlyharmlessd | google+https://plus.google.com/116981867908651073843/posts

Dakuan avatar Nov 20 '13 18:11 Dakuan

Does not work for me unfortunately. Ever time I run Karma a new Tab is added. I tried both the solutions of @lennym and @azakus. Strangely enough the safari opens up with a clean new page without the old tabs if I open it manually. But opened again with Karma it starts with oldTabsNumber + 1. Any further ideas? :(

FoxGit avatar Feb 06 '14 10:02 FoxGit

This should fix it https://github.com/karma-runner/karma/issues/878

vojtajina avatar Feb 14 '14 21:02 vojtajina

I can confirm @azakus's workaround works on OS X 10.9.1 with Safari 7.0.1.

lazd avatar Feb 20 '14 22:02 lazd

Can you elaborate on how to fix this? Still having issues with it and I don't know what the above mentioned fix is referring to. Thanks

thebigredgeek avatar Mar 03 '14 20:03 thebigredgeek

Ah! NVM! Just a CLI routine. Haha

thebigredgeek avatar Mar 03 '14 20:03 thebigredgeek

So far, the solution @azakus supplied seems to be working for me. Thanks!

zedd45 avatar Apr 24 '14 15:04 zedd45

A small hack that seems to work, but has definitely not been extensively tested: gardenvarietyse/karma-safari-launcher@28eb4f19737af74037cb5cf17160f9770172bbd1

gardenvarietyse avatar Mar 13 '15 10:03 gardenvarietyse

@gardenvarietyse Would you like to make a PR out of your hack that gets triggered with a custom option forceKill for the safari launcher? I think this would be very helpful until we fix the underlying karma issue.

dignifiedquire avatar Jun 22 '15 18:06 dignifiedquire

Thanks @azakus - that works for me on Yosemite

Keysox avatar Aug 10 '15 20:08 Keysox

@azakus - worked on El Capitan :+1:

rhewitt22 avatar Feb 18 '16 18:02 rhewitt22

See #20.

mgol avatar Feb 01 '17 15:02 mgol