Run all tests synchronously
()
| 194 | |
| 195 | # Main test functions |
| 196 | def run_all_tests(): |
| 197 | """Run all tests synchronously""" |
| 198 | print("=" * 60) |
| 199 | print("XTOP TUI Testing - Basic Tests") |
| 200 | print("=" * 60) |
| 201 | print() |
| 202 | |
| 203 | # Keep track of results |
| 204 | passed = 0 |
| 205 | failed = 0 |
| 206 | |
| 207 | # Run each test |
| 208 | tests = [ |
| 209 | ("test_tui_startup", test_tui_startup), |
| 210 | ("test_grouping_menu", test_grouping_menu), |
| 211 | ("test_add_single_column", test_add_single_column), |
| 212 | ("test_add_multiple_columns", test_add_multiple_columns), |
| 213 | ("test_latency_columns", test_latency_columns), |
| 214 | ("test_peek_functionality", test_peek_functionality), |
| 215 | ("test_navigation_keys", test_navigation_keys), |
| 216 | ] |
| 217 | |
| 218 | for test_name, test_func in tests: |
| 219 | print(f"Running {test_name}...") |
| 220 | try: |
| 221 | asyncio.run(test_func()) |
| 222 | passed += 1 |
| 223 | except Exception as e: |
| 224 | print(f"✗ {test_name} failed: {e}") |
| 225 | failed += 1 |
| 226 | |
| 227 | print() |
| 228 | print("=" * 60) |
| 229 | print(f"Results: {passed} passed, {failed} failed") |
| 230 | print("=" * 60) |
| 231 | |
| 232 | |
| 233 | @pytest.mark.asyncio |
no test coverage detected