BIMTester can now accept both IDS .xml as well as Gherkin .feature files and generate HTML reports

This commit is contained in:
Dion Moult
2021-02-28 14:35:21 +11:00
parent 36cfb0d3f5
commit 4e889b75d7
4 changed files with 69 additions and 6 deletions
+3 -3
View File
@@ -21,12 +21,12 @@ class ReportGenerator:
self.generate_feature_report(feature, output_file)
def generate_feature_report(self, feature, output_file):
file_name = os.path.basename(feature["location"]).split(":")[0]
# file_name = os.path.basename(feature["location"]).split(":")[0]
data = {
"file_name": file_name,
# "file_name": file_name,
"time": datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"),
"name": feature["name"],
"description": feature["description"],
"description": feature.get("description", ""),
"is_success": feature["status"] == "passed",
"scenarios": [],
}