Returnwert der Tests dem Programm zurück geben, damit man in der .bat abfragen kann ob alles geklappt hat
This commit is contained in:
+2
-2
@@ -282,7 +282,7 @@ class TestRunner:
|
|||||||
print(f"Test file {self.target_file}.dxf not found in testdata directory")
|
print(f"Test file {self.target_file}.dxf not found in testdata directory")
|
||||||
else:
|
else:
|
||||||
print("No test files found in testdata directory")
|
print("No test files found in testdata directory")
|
||||||
return
|
return False
|
||||||
|
|
||||||
if self.target_file:
|
if self.target_file:
|
||||||
print(f"Running test for file: {self.target_file}")
|
print(f"Running test for file: {self.target_file}")
|
||||||
@@ -298,7 +298,7 @@ class TestRunner:
|
|||||||
self.failed_tests.append(test_file)
|
self.failed_tests.append(test_file)
|
||||||
|
|
||||||
print("=" * 70)
|
print("=" * 70)
|
||||||
self.print_summary()
|
return self.print_summary()
|
||||||
|
|
||||||
def print_summary(self):
|
def print_summary(self):
|
||||||
"""Print test summary similar to unittest"""
|
"""Print test summary similar to unittest"""
|
||||||
|
|||||||
Reference in New Issue
Block a user