File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -193,15 +193,20 @@ class TestExecutionService implements ITestExecutionService {
193193 options : {
194194 debugTransport : this . $options . debugTransport ,
195195 debugBrk : this . $options . debugBrk ,
196+ watch : ! ! this . $options . watch
196197 }
197198 } ,
198199 } ;
200+
199201 if ( this . $config . DEBUG || this . $logger . getLevel ( ) === 'TRACE' ) {
200202 karmaConfig . logLevel = 'DEBUG' ;
201203 }
204+
202205 if ( ! this . $options . watch ) {
206+ // Setting singleRun to true will automatically start the tests when new browser (device in our case) is registered in karma.
203207 karmaConfig . singleRun = true ;
204208 }
209+
205210 if ( this . $options . debugBrk ) {
206211 karmaConfig . browserNoActivityTimeout = 1000000000 ;
207212 }
Original file line number Diff line number Diff line change 11
22# A PowerShell script to set up Windows machine for NativeScript development
3- # NOTE: The scripts requires at least a version 4.0 .NET framework installed
3+ # NOTE: The script requires at least a version 4.0 .NET framework installed
44# To run it inside a COMMAND PROMPT against the production branch (only one supported with self-elevation) use
55# @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/NativeScript/nativescript-cli/production/setup/native-script.ps1'))"
66# To run it inside a WINDOWS POWERSHELL console against the production branch (only one supported with self-elevation) use
You can’t perform that action at this time.
0 commit comments