← All tasks
Coding
Write tests
Generate unit, integration or end-to-end tests for existing code.
Community ranking
from coding, reasoning, speedNobody has rated an AI for “Write tests” yet, so this order comes from how people rate the abilities the task asks for (coding, reasoning, speed) — not from the task itself. Rate one you have used for “Write tests” and the order starts to reflect it.
- ★ChatGPTOpenAIMostly overall rating6.8—
- 2ClaudeAnthropicFrom ability ratings6.6—
- 3GeminiGoogleMostly overall rating6.5—
- 4CopilotMicrosoftMostly overall rating5.2—
- 5DeepSeekDeepSeekMostly overall rating5.0—
- 5Meta AIMetaMostly overall rating5.0—
- 5GrokxAIMostly overall rating5.0—
- 5PerplexityPerplexity AIMostly overall rating5.0—
- 5MistralMistral AIMostly overall rating5.0—
Start with this prompt
Written for this task. Fill in the bracketed parts.
Write tests for the code below using [test framework]. Cover the happy path, the edge cases, and the failure modes. I care more about tests that would actually catch a regression than about coverage percentage. For each test, a one-line comment on what breakage it's guarding against. Tell me anything you found untestable as written, and why. --- [paste the code]
Try another task