Run all tests.
()
| 134 | |
| 135 | |
| 136 | def main(): |
| 137 | """Run all tests.""" |
| 138 | print("Running container database tests...") |
| 139 | print() |
| 140 | |
| 141 | try: |
| 142 | test_database_initialization() |
| 143 | test_record_operations() |
| 144 | test_orphan_detection() |
| 145 | test_process_exists() |
| 146 | |
| 147 | print() |
| 148 | print("✅ All tests passed!") |
| 149 | return 0 |
| 150 | except AssertionError as e: |
| 151 | print() |
| 152 | print(f"❌ Test failed: {e}") |
| 153 | return 1 |
| 154 | except KeyboardInterrupt as ki: |
| 155 | handle_keyboard_interrupt(ki) |
| 156 | raise |
| 157 | except Exception as e: |
| 158 | print() |
| 159 | print(f"❌ Unexpected error: {e}") |
| 160 | import traceback |
| 161 | |
| 162 | traceback.print_exc() |
| 163 | return 1 |
| 164 | |
| 165 | |
| 166 | if __name__ == "__main__": |
no test coverage detected