File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ function addVow(vow) {
59
59
var batch = vow . batch ;
60
60
61
61
batch . total ++ ;
62
+ batch . vows . push ( vow ) ;
62
63
63
64
return this . addListener ( "success" , function ( ) {
64
65
var args = Array . prototype . slice . call ( arguments ) ;
@@ -111,6 +112,8 @@ function addVow(vow) {
111
112
}
112
113
113
114
function output ( status , exception ) {
115
+ vow . status = status ;
116
+
114
117
if ( vow . context && batch . lastContext !== vow . context ) {
115
118
batch . lastContext = vow . context ;
116
119
batch . suite . report ( [ 'context' , vow . context ] ) ;
Original file line number Diff line number Diff line change @@ -28,13 +28,15 @@ this.Suite.prototype = new(function () {
28
28
b . lastContext = null ;
29
29
b . remaining = b . _remaining ;
30
30
b . honored = b . broken = b . errored = b . total = b . pending = 0 ;
31
+ b . vows . forEach ( function ( vow ) { vow . status = null } ) ;
31
32
} ) ;
32
33
} ;
33
34
34
35
this . addBatch = function ( tests ) {
35
36
this . batches . push ( {
36
37
tests : tests ,
37
38
suite : this ,
39
+ vows : [ ] ,
38
40
remaining : 0 ,
39
41
_remaining : 0 ,
40
42
honored : 0 ,
@@ -172,6 +174,7 @@ this.Suite.prototype = new(function () {
172
174
context : ctx . name ,
173
175
description : item ,
174
176
binding : ctx . env ,
177
+ status : null ,
175
178
batch : batch
176
179
} ) ;
177
180
You can’t perform that action at this time.
0 commit comments