karma
karma copied to clipboard
Introduce API to Programmatically Restart Karma
There should be an API to programmatically restart Karma.
@devoto13 What do you think?
@jginsburgn What exactly do you mean by "restart Karma"? Is it restart a test run? Restart a browser? Restart the whole server? What is the use case? A bit hard to comment on this without more information.
I clarified the use case with one of our users: they want Karma to reload its configuration.
Not sure if we can implement a generic configuration reload with the current Karma architecture in a reasonable effort. If the idea is to simply restart Karma whenever a config file changes it should be pretty trivial to implement using the programmatic API: watch config file for changes and re-create Karma server whenever change is found.