Hacker News new | ask | show | jobs
by heed 644 days ago
I like to use copilot when writing tests. It's not always perfect but makes things less tedious for me.
2 comments

I recently switched to cursor, and am in the process of wrangling an inherited codebase that had effectively no tests and cursor has saved me _hours_ it's generally terrible at any actual code refactoring, but it has saved me a great deal of typing while adding the missing test coverage.
Excuse my ignorance, i have avoided copilot until now..

Does it have (some of) the other files of the project in it's context, when you use it in a test file?

Copilot has your open tabs in context.

Cursor has that plus whatever files you want to specifically add. Or it has a mode where you can feed it the entire project and it searches to decide which files to add

Thanks!