Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,22 @@ void addTest(
void write(Writer writer, boolean statsEnabled, boolean rollUpEnabled) throws IOException {
writer.write(
"# This is a configuration file for Test262SuiteTest.java. See ./README.md for more info about this file\n");

if (statsEnabled) {
long failures = 0;
long tests = 0;

for (Node node : rootNode.childNodes.values()) {
if (node instanceof DirectoryNode directoryNode) {
tests += directoryNode.testDeepCount;
failures += directoryNode.failureDeepCount;
}
}
writer.write("#\n# Overall failures: ");
writer.write(DirectoryNode.statsText(statsEnabled, tests, failures));
writer.write("\n\n");
}

rootNode.writeChildNodes(writer, null, statsEnabled, rollUpEnabled, false);
}

Expand Down
3 changes: 3 additions & 0 deletions tests/testsrc/test262.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# This is a configuration file for Test262SuiteTest.java. See ./README.md for more info about this file
#
# Overall failures: 10630/33541 (31.69%)


annexB/built-ins 54/241 (22.41%)
Array/from/iterator-method-emulates-undefined.js {unsupported: [IsHTMLDDA]}
Expand Down
Loading