3 ms·
> writes 4 pages of automated tests that work right on the first try Not sure that’s the right criterion to assess the quality and adequacy of tests.
by layer8 4y ago
> writes 4 pages of automated tests that work right on the first try
Not sure that’s the right criterion to assess the quality and adequacy of tests.
- knodi123 4y agolol, fair enough, but I would never commit a line of code I hadn't carefully read myself. my new class was basic, so the new unit test was basic as well, but it was thorough and correct. And I exaggerated a bit; I did write 3 or 4 comments to give the ai some idea of where I was heading.
- pphysch 4y agoBut my GitHub badge says I have 105% test coverage! That means there are negative bugs, right...?
- bcbrown 4y agoI'd be impressed if AI wrote a test suite that immediately found a bunch of valid bugs. I'd be nonplussed if it wrote a test suite that "passed" on the first try. The presence of passing tests does not imply an absence of bugs, and the hard part of developing a test suite is the test design, not the implementation.