NativeScript / karma-nativescript-launcher

Karma launcher for NativeScript unit tests
Other
6 stars 3 forks source link

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

Closed rosen-vladimirov closed 8 years ago

rosen-vladimirov commented 8 years ago

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 https://github.com/NativeScript/nativescript-cli/issues/1625

Mitko-Kerezov commented 8 years ago

:+1: