Hacker News new | ask | show | jobs
by rr808 585 days ago
I struggle to get github copilot to create any unit tests that provide any value. How to you get it to create really useful tests?
2 comments

Would recommend to try out anthropic sonnet 3.5 for this one - usually generates decent unit tests for reasonably sized functions
I use claude-3-5-sonnet-20241022 with a very explicit .cursorrules file with the cursor editor.
Can you share your .cursorrules? For me cursor is not much better than autocomplete, but I'm writing mostly e2e tests.
You can find a bunch on https://cursor.directory/.