Explain a Failing Test With ChatGPT
Share the test code, the failure output, and the code under test so ChatGPT can explain why expected and actual values do not match.
ChatGPT
Paste the error and a small example that fails, then ask for a clear diagnosis and a fix.
Share the test code, the failure output, and the code under test so ChatGPT can explain why expected and actual values do not match.
Ask ChatGPT for a focused code review that targets errors, edge cases, and unclear names instead of sending a vague look at this.
Cut the failing code down to the smallest example that still breaks, then ask ChatGPT for help so the answer targets the real problem.
Request the likely cause first and the fix second so you can confirm the story makes sense before you change any code.
Paste the exact error message and a small failing example before you ask for a fix so ChatGPT starts from the real symptom.