|
|
|
|
|
by ojkelly
602 days ago
|
|
Test names are one of those things that are painful because it’s obvious to you as you write it, but there’s an extra hassle to switch gears in your head to describe what the contents of the test is doing. It is really valuable when they are named well. I’ve found this is where LLM can be quite useful, they’re pretty good at summarising. Someday soon I think we’ll see a language server that checks if comments still match what they’re documenting. The same for tests being named accurately. |
|
If you're writing the test after then yeah, maybe it's hard, but that's one of the many reasons why it's probably better to write the test before and align it with the actual feature or bugfix you're intending to implement.