File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ function addVow(vow) {
5959 var batch = vow . batch ;
6060
6161 batch . total ++ ;
62+ batch . vows . push ( vow ) ;
6263
6364 return this . addListener ( "success" , function ( ) {
6465 var args = Array . prototype . slice . call ( arguments ) ;
@@ -111,6 +112,8 @@ function addVow(vow) {
111112 }
112113
113114 function output ( status , exception ) {
115+ vow . status = status ;
116+
114117 if ( vow . context && batch . lastContext !== vow . context ) {
115118 batch . lastContext = vow . context ;
116119 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 () {
2828 b . lastContext = null ;
2929 b . remaining = b . _remaining ;
3030 b . honored = b . broken = b . errored = b . total = b . pending = 0 ;
31+ b . vows . forEach ( function ( vow ) { vow . status = null } ) ;
3132 } ) ;
3233 } ;
3334
3435 this . addBatch = function ( tests ) {
3536 this . batches . push ( {
3637 tests : tests ,
3738 suite : this ,
39+ vows : [ ] ,
3840 remaining : 0 ,
3941 _remaining : 0 ,
4042 honored : 0 ,
@@ -172,6 +174,7 @@ this.Suite.prototype = new(function () {
172174 context : ctx . name ,
173175 description : item ,
174176 binding : ctx . env ,
177+ status : null ,
175178 batch : batch
176179 } ) ;
177180
You can’t perform that action at this time.
0 commit comments