Run all stress tests.
()
| 408 | |
| 409 | |
| 410 | def main() -> int: |
| 411 | """Run all stress tests.""" |
| 412 | print("\n" + "=" * 70) |
| 413 | print("COMPREHENSIVE LINT CACHE STRESS TEST SUITE") |
| 414 | print("=" * 70) |
| 415 | |
| 416 | test = CacheLintStressTest() |
| 417 | |
| 418 | try: |
| 419 | test_python_lint_cache_rapid_changes(test) |
| 420 | test_javascript_lint_cache(test) |
| 421 | test_cpp_lint_cache_rapid_changes(test) |
| 422 | test_all_caches_consistency(test) |
| 423 | test_cache_file_storage(test) |
| 424 | test_manifest_completeness(test) |
| 425 | test_cache_performance_all_caches(test) |
| 426 | test_concurrent_cache_access(test) |
| 427 | |
| 428 | success = test.print_summary() |
| 429 | return 0 if success else 1 |
| 430 | |
| 431 | except KeyboardInterrupt as ki: |
| 432 | handle_keyboard_interrupt(ki) |
| 433 | raise |
| 434 | print("\n\n⚠️ Test suite interrupted by user") |
| 435 | return 2 |
| 436 | except Exception as e: |
| 437 | print(f"\n\n💥 Unexpected error: {e}") |
| 438 | import traceback |
| 439 | |
| 440 | traceback.print_exc() |
| 441 | return 3 |
| 442 | |
| 443 | |
| 444 | if __name__ == "__main__": |
no test coverage detected