Browse Source

Make examples test verbose (always print trace)

Joeri Exelmans 1 year ago
parent
commit
87dfe27149
2 changed files with 7 additions and 7 deletions
  1. 5 5
      examples_test.py
  2. 2 2
      lib/test.py

+ 5 - 5
examples_test.py

@@ -56,8 +56,8 @@ SCENARIOS_E = [
 ]
 
 if __name__ == "__main__":
-    run_scenarios(a.A, SCENARIOS_A, [], [])
-    run_scenarios(b.B, SCENARIOS_B, [], [])
-    run_scenarios(c.C, SCENARIOS_C, [], [])
-    run_scenarios(d.D, SCENARIOS_D, [], [])
-    run_scenarios(e.E, SCENARIOS_E, [], [])
+    run_scenarios(a.A, SCENARIOS_A, [], [], verbose=True)
+    run_scenarios(b.B, SCENARIOS_B, [], [], verbose=True)
+    run_scenarios(c.C, SCENARIOS_C, [], [], verbose=True)
+    run_scenarios(d.D, SCENARIOS_D, [], [], verbose=True)
+    run_scenarios(e.E, SCENARIOS_E, [], [], verbose=True)

+ 2 - 2
lib/test.py

@@ -148,6 +148,6 @@ def run_scenarios(statechart_class, SCENARIOS, INITIAL, IDEMPOTENT, verbose=Fals
             passed = False
 
     if passed:
-        print("\nAll tests passed.")
+        print("All scenarios passed.")
     else:
-        print("\nSome tests failed.")
+        print("Some scenarios failed.")