Skip to content

Do not schedule execution in case --watch is not set #24

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

Merged
merged 1 commit into from
Mar 21, 2016

Conversation

rosen-vladimirov
Copy link
Contributor

In case --watch is not set, CLI will set singleRun option of karma config to true. This way on browser register event, karma will automatically run the tests.
In case --watch is set, any change in code should start new tests, so when browser is registered, schedule new execution and karma will add the test execution to the queue and execute them when available.

Fixes NativeScript/nativescript-cli#1625

In case `--watch` is not set, CLI will set `singleRun` option of karma config to true. This way on browser register event, karma will automatically run the tests.
In case `--watch` is set, any change in code should start new tests, so when browser is registered, schedule new execution and karma will add the test execution to the queue and execute them when available.
@Mitko-Kerezov
Copy link

👍

rosen-vladimirov added a commit that referenced this pull request Mar 21, 2016
Do not schedule execution in case `--watch` is not set
@rosen-vladimirov rosen-vladimirov merged commit 4915cac into master Mar 21, 2016
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-double-restart branch March 21, 2016 08:55
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.

2 participants