File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ import stopProcess = require('./stop-process');
12
12
interface IHostConfiguration {
13
13
port : number ;
14
14
ips : string [ ] ;
15
- debug : boolean ;
15
+ options : {
16
+ debugBrk ?: boolean ;
17
+ debugTransport ?: boolean ;
18
+ }
16
19
}
17
20
18
21
interface INetworkConfiguration extends IHostConfiguration {
@@ -40,6 +43,7 @@ function enableSocketIoDebugging() {
40
43
}
41
44
42
45
var config : INetworkConfiguration = require ( './config' ) ;
46
+ config . options = config . options || { }
43
47
44
48
export class TestBrokerViewModel extends observable . Observable {
45
49
private startEmitted : boolean ;
@@ -68,7 +72,7 @@ export class TestBrokerViewModel extends observable.Observable {
68
72
69
73
global . __karma__ = this ;
70
74
71
- if ( config . debug ) {
75
+ if ( config . options . debugTransport ) {
72
76
enableSocketIoDebugging ( ) ;
73
77
}
74
78
//debugger;
@@ -263,6 +267,11 @@ export class TestBrokerViewModel extends observable.Observable {
263
267
} ) ;
264
268
if ( ! this . hasError ) {
265
269
console . log ( 'NSUTR: beginning test run' ) ;
270
+ if ( config . options . debugBrk ) {
271
+ /// HINT: If you need to place breakpoints in your tests, navigate to your test files in the Sources panel.
272
+ /// Hit the 'Resume script execution' button or F8 to continue to your tests.
273
+ debugger ;
274
+ }
266
275
this . start ( this . config ) ;
267
276
}
268
277
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " nativescript-unit-test-runner" ,
3
- "version" : " 0.2.4 " ,
3
+ "version" : " 0.2.6 " ,
4
4
"description" : " NativeScript unit test runner component." ,
5
5
"main" : " app.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments