Analyze a Failing Test with Copilot
Let Copilot explain failing test output and propose fixes.
category:debugging
analysis
tests
workflow
multi-step
0
Prompt
A workflow that combines code, failing tests, and Copilot's analysis to quickly identify root causes. ## Steps: 1. Run the test suite and capture the failing test output. 2. Paste the failing test and full stack trace into a scratch file. 3. Ask Copilot: "Explain why this test fails and show the likely faulty code." 4. Navigate to the suggested area. 5. Ask Copilot: "Provide a fixed version of this function." 6. Apply the fix and re-run tests. 7. Add regression tests if needed.