]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchAPI/Test/TestSketch.py
Salome HOME
Fix tests using unittest (failed cases were not reported by ctest).
[modules/shaper.git] / src / SketchAPI / Test / TestSketch.py
index c5cbfa8651486b75922da017ce3cf454a6c1a620..fb7c3c0196b4c0d89b1877aa1a459c6aef55358a 100644 (file)
@@ -35,4 +35,5 @@ class SketchTestCase(unittest.TestCase):
 # TODO(spo): add tests.
 
 if __name__ == "__main__":
-    unittest.main(exit=False)
+    test_program = unittest.main(exit=False)
+    assert test_program.result.wasSuccessful(), "Test failed"