Detect and handle flaky test in a simple test suite
Preconditions (2)
Step 1: Run the test suite 5 times in a row without changing the code
Step 2: Record the pass or fail result of each test in each run
Step 3: Identify any test that fails in some runs but passes in others as flaky
Step 4: Mark the flaky test in the test report
Step 5: Rerun the flaky test separately 3 more times to confirm flakiness
Step 6: Log the flaky test details for further investigation
✅ Expected Result: The flaky test is detected by inconsistent pass/fail results across runs, marked clearly in the report, and rerun to confirm flakiness