Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add emittter to the server exports #1

Merged
merged 1 commit into from
May 4, 2015
Merged

Conversation

ajbogh
Copy link
Owner

@ajbogh ajbogh commented Apr 9, 2015

Adding the emitter to the exports allows a developer to stop a running set of (singleRun) tests using the below code:
karma.emitter().emit('run_complete', [], {exitCode: 0});

This could be more elegant since doing this will stop a running set of tests but leaves the browser hanging. Eventually the browser timeout cleans it up with a bad error message. It would be nicer to stop the tests without the browser crashing.

Adding the emitter to the exports allows a developer to stop a running set of tests using the below code:
    karma.emitter().emit('run_complete', [], {exitCode: 0});
ajbogh added a commit that referenced this pull request May 4, 2015
Add emittter to the server exports
@ajbogh ajbogh merged commit 90a1829 into master May 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant