File tree Expand file tree Collapse file tree 1 file changed +24
-15
lines changed Expand file tree Collapse file tree 1 file changed +24
-15
lines changed Original file line number Diff line number Diff line change @@ -139,24 +139,33 @@ ${_COLOR_FAILED}✗ Failed${_COLOR_DEFAULT}: %s
139
139
}
140
140
141
141
function console_results::print_failed_test() {
142
- local test_name=$1
143
- local expected=$2
144
- local failure_condition_message=$3
145
- local actual=$4
146
- local extra_key=$5
147
- local extra_value=$6
142
+ if [[ " $SIMPLE_OUTPUT " == true ]]; then
143
+ if (( _SUCCESSFUL_TEST_COUNT % 50 != 0 )) ; then
144
+ printf " F"
145
+ else
146
+ printf " F\n"
147
+ fi
148
+ return
149
+ fi
148
150
149
- printf " \
150
- ${_COLOR_FAILED} ✗ Failed${_COLOR_DEFAULT} : %s
151
- ${_COLOR_FAINT} Expected${_COLOR_DEFAULT} ${_COLOR_BOLD} '%s'${_COLOR_DEFAULT}
152
- ${_COLOR_FAINT} %s${_COLOR_DEFAULT} ${_COLOR_BOLD} '%s'${_COLOR_DEFAULT} \n" \
153
- " ${test_name} " " ${expected} " " ${failure_condition_message} " " ${actual} "
151
+ local test_name=$1
152
+ local expected=$2
153
+ local failure_condition_message=$3
154
+ local actual=$4
155
+ local extra_key=$5
156
+ local extra_value=$6
154
157
155
- if [ -n " $extra_key " ]; then
156
158
printf " \
157
- ${_COLOR_FAINT} %s${_COLOR_DEFAULT} ${_COLOR_BOLD} '%s'${_COLOR_DEFAULT} \n" \
158
- " ${extra_key} " " ${extra_value} "
159
- fi
159
+ ${_COLOR_FAILED} ✗ Failed${_COLOR_DEFAULT} : %s
160
+ ${_COLOR_FAINT} Expected${_COLOR_DEFAULT} ${_COLOR_BOLD} '%s'${_COLOR_DEFAULT}
161
+ ${_COLOR_FAINT} %s${_COLOR_DEFAULT} ${_COLOR_BOLD} '%s'${_COLOR_DEFAULT} \n" \
162
+ " ${test_name} " " ${expected} " " ${failure_condition_message} " " ${actual} "
163
+
164
+ if [ -n " $extra_key " ]; then
165
+ printf " \
166
+ ${_COLOR_FAINT} %s${_COLOR_DEFAULT} ${_COLOR_BOLD} '%s'${_COLOR_DEFAULT} \n" \
167
+ " ${extra_key} " " ${extra_value} "
168
+ fi
160
169
}
161
170
162
171
function console_results::print_failed_snapshot_test() {
You can’t perform that action at this time.
0 commit comments