From 51c503eb8618a3a78a844882ce316c461f86ff95 Mon Sep 17 00:00:00 2001 From: adamopolous Date: Fri, 30 Aug 2019 07:47:11 -0400 Subject: [PATCH] fixed broken assert in validating test coverage --- gradle/support/testUtils.gradle | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gradle/support/testUtils.gradle b/gradle/support/testUtils.gradle index 31f88c01d1..95f79ebaaf 100644 --- a/gradle/support/testUtils.gradle +++ b/gradle/support/testUtils.gradle @@ -167,7 +167,7 @@ def Map> getTestReport() { //--------------------- - // Creates GhidraAppConfig + // Creates GhidraAppConfiguration ghidraConfigs.add("DataTypeSelectionTextFieldTest"); ghidraConfigs.add("AbstractGhidraHeadedIntegrationTest"); @@ -273,8 +273,14 @@ def Map> getTestReport() { } } + int processedFiles = 0; + for (Map.Entry entry : testReport.entrySet()) { + Map testMap = entry.getValue(); + processedFiles += testMap.size(); + } + logger.info("====processed: " + processedFiles + "::" + totalHtmlFiles); assert totalHtmlFiles != 0 : "getTestReport: Did not parse any valid html files in $testTimeParserInputDir. Directory might be empty" - assert totalHtmlFiles == (testReport.size() + excludedHtmlFiles) : "Not all html files processed." + assert totalHtmlFiles == (processedFiles + excludedHtmlFiles) : "Not all html files processed." logger.info("getTestReport:\n" + "\tIncluded " + testReport.size() + " and excluded " + excludedHtmlFiles