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