File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
firebase-firestore/src/test/java/com/google/firebase/firestore/spec Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1119,6 +1119,9 @@ public void testSpecTests() throws Exception {
1119
1119
testNameFilter = Pattern .compile (testNameFilterFromSystemProperty );
1120
1120
}
1121
1121
1122
+ int testPassCount = 0 ;
1123
+ int testSkipCount = 0 ;
1124
+
1122
1125
for (Pair <String , JSONObject > parsedSpecFile : parsedSpecFiles ) {
1123
1126
String fileName = parsedSpecFile .first ;
1124
1127
JSONObject fileJSON = parsedSpecFile .second ;
@@ -1157,18 +1160,21 @@ public void testSpecTests() throws Exception {
1157
1160
info ("Spec test: " + name );
1158
1161
runSteps (steps , config );
1159
1162
ranAtLeastOneTest = true ;
1163
+ testPassCount ++;
1160
1164
} catch (AssertionError e ) {
1161
- throw new AssertionError ("Spec test failure: " + name , e );
1165
+ throw new AssertionError ("Spec test failure: " + name + " (" + fileName + ")" , e );
1162
1166
}
1163
1167
long end = System .currentTimeMillis ();
1164
1168
if (measureRuntime ) {
1165
1169
info ("Runtime: " + (end - start ) + " ms" );
1166
1170
}
1167
1171
} else {
1172
+ testSkipCount ++;
1168
1173
info (" [SKIPPED] Spec test: " + name );
1169
1174
}
1170
1175
}
1171
1176
}
1177
+ info (getClass ().getName () + " completed; pass=" + testPassCount + " skip=" + testSkipCount );
1172
1178
assertTrue (ranAtLeastOneTest );
1173
1179
}
1174
1180
You can’t perform that action at this time.
0 commit comments