| ▲ | mlmonkey 4 hours ago | ||||||||||||||||||||||||||||||||||
Writing unit tests used to be the bane of my existence. I used to hate them. Often times, the LoC for unit tests was 3X the LoC of the actual code. But not any more! Now I point the LLM to the code and order it to write unit tests, covering all edge cases, etc. I'd rather spend 3 hours arguing with the LLM than writing unit tests! :-D | |||||||||||||||||||||||||||||||||||
| ▲ | dkn 4 hours ago | parent | next [-] | ||||||||||||||||||||||||||||||||||
I am curious in your experience how often the LLM must also update the tests. I find that if LLMs write tests after the implementation exists, they are either extremely brittle because they are coupled to the implementation, or they cover little of value because they mock everything to the point of testing nothing. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| ▲ | zerr an hour ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||
Some companies (e.g. Microsoft) used to have "Software Engineers in Test" who's job was writing such tests all day long, so that those developers who were developing features wouldn't waste time on it. | |||||||||||||||||||||||||||||||||||