@@ -1109,8 +1109,7 @@ public void testSpecTests() throws Exception {
1109
1109
parsedSpecFiles .add (new Pair <>(f .getName (), fileJSON ));
1110
1110
}
1111
1111
1112
- String testNameFilterFromSystemProperty =
1113
- emptyToNull (System .getProperty (TEST_FILTER_PROPERTY ));
1112
+ String testNameFilterFromSystemProperty = emptyToNull (System .getProperty (TEST_FILTER_PROPERTY ));
1114
1113
Pattern testNameFilter ;
1115
1114
if (testNameFilterFromSystemProperty == null ) {
1116
1115
testNameFilter = null ;
@@ -1119,6 +1118,9 @@ public void testSpecTests() throws Exception {
1119
1118
testNameFilter = Pattern .compile (testNameFilterFromSystemProperty );
1120
1119
}
1121
1120
1121
+ int testPassCount = 0 ;
1122
+ int testSkipCount = 0 ;
1123
+
1122
1124
for (Pair <String , JSONObject > parsedSpecFile : parsedSpecFiles ) {
1123
1125
String fileName = parsedSpecFile .first ;
1124
1126
JSONObject fileJSON = parsedSpecFile .second ;
@@ -1157,18 +1159,21 @@ public void testSpecTests() throws Exception {
1157
1159
info ("Spec test: " + name );
1158
1160
runSteps (steps , config );
1159
1161
ranAtLeastOneTest = true ;
1162
+ testPassCount ++;
1160
1163
} catch (AssertionError e ) {
1161
- throw new AssertionError ("Spec test failure: " + name , e );
1164
+ throw new AssertionError ("Spec test failure: " + name + " (" + fileName + ")" , e );
1162
1165
}
1163
1166
long end = System .currentTimeMillis ();
1164
1167
if (measureRuntime ) {
1165
1168
info ("Runtime: " + (end - start ) + " ms" );
1166
1169
}
1167
1170
} else {
1171
+ testSkipCount ++;
1168
1172
info (" [SKIPPED] Spec test: " + name );
1169
1173
}
1170
1174
}
1171
1175
}
1176
+ info (getClass ().getName () + " completed; pass=" + testPassCount + " skip=" + testSkipCount );
1172
1177
assertTrue (ranAtLeastOneTest );
1173
1178
}
1174
1179
0 commit comments