Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rr808
· 2y ago · 0 comments
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?
Comments
[–]
BillyTheKing
2y ago
Would recommend to try out anthropic sonnet 3.5 for this one - usually generates decent unit tests for reasonably sized functions
[–]
MarcelOlsz
2y ago
I use claude-3-5-sonnet-20241022 with a very explicit .cursorrules file with the cursor editor.
[–]
ponector
2y ago
Can you share your .cursorrules? For me cursor is not much better than autocomplete, but I'm writing mostly e2e tests.
[–]
MarcelOlsz
2y ago
You can find a bunch on
https://cursor.directory/
.