karma-safari-launcher
karma-safari-launcher copied to clipboard
Launching 10 instances of safari when one would do
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!
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).
I've had success with defaults write com.apple.Safari ApplePersistenceIgnoreState YES
on Mavericks
thanks @azakus that totally worked for me on Mavericks :)
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
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? :(
This should fix it https://github.com/karma-runner/karma/issues/878
I can confirm @azakus's workaround works on OS X 10.9.1 with Safari 7.0.1.
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
Ah! NVM! Just a CLI routine. Haha
So far, the solution @azakus supplied seems to be working for me. Thanks!
A small hack that seems to work, but has definitely not been extensively tested: gardenvarietyse/karma-safari-launcher@28eb4f19737af74037cb5cf17160f9770172bbd1
@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.
Thanks @azakus - that works for me on Yosemite
@azakus - worked on El Capitan :+1:
See #20.