Run unit tests (*_test.py) Raises: TestFailureError: If any of the unit tests failed.
()
| 312 | |
| 313 | @staticmethod |
| 314 | def unit_test() -> None: |
| 315 | """Run unit tests (*_test.py) |
| 316 | |
| 317 | Raises: |
| 318 | TestFailureError: If any of the unit tests failed. |
| 319 | """ |
| 320 | repo_root = os.path.join(TERRAFORM_DIR, '..') |
| 321 | suite = unittest.TestLoader().discover(repo_root, pattern='*_test.py') |
| 322 | test_result = unittest.TextTestRunner(verbosity=1).run(suite) |
| 323 | if not test_result.wasSuccessful(): |
| 324 | raise TestFailureError('Unit tests failed') |
no test coverage detected