Hacker News new | past | comments | ask | show | jobs | submit login

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?



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/.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: