File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 117117 }
118118
119119 result = testBox .run (argumentCollection = testBoxOptions );
120+ DeJsonResult = DeserializeJSON (result );
121+
122+ if (DeJsonResult .totalFail > 0 || DeJsonResult .totalError > 0 ) {
123+ cfheader (statuscode = 417 );
124+ } else {
125+ cfheader (statuscode = 200 );
126+ }
120127 }
121128 else if (url .format eq " json" ){
122129 // Set JSON reporter
Original file line number Diff line number Diff line change 120120 result = testBox .run (
121121 reporter = " wheels.wheelstest.system.reports.JSONReporter"
122122 );
123+ DeJsonResult = DeserializeJSON (result );
124+
125+ if (DeJsonResult .totalFail > 0 || DeJsonResult .totalError > 0 ) {
126+ cfheader (statuscode = 417 );
127+ } else {
128+ cfheader (statuscode = 200 );
129+ }
123130 }
124131 else if (url .format eq " json" ){
125132 result = testBox .run (
You can’t perform that action at this time.
0 commit comments