True, I do feel mocked by this code.
Comment on AI Coding Is Massively Overhyped, Report Finds
jjjalljs@ttrpg.network 1 day agoOne of the guys at my old job submitted a PR with tests that basically just mocked everything, tested nothing. Like,
with patch("something.whatever", return_value=True): assert whatever(0) is True assert whatever(1) is True
Except for a few dozen lines, with names that made it look like they were doing useful.
He used AI to generate them, of course. Pretty useless.
DarkDarkHouse@lemmy.sdf.org 1 day ago
MangoCats@feddit.it 1 day ago
We have had guys submit tests like that, long before AI was a thing.
SparroHawc@lemmy.zip 4 hours ago
At least in those situations, the person writing the tests knows they’re not testing anything…
MangoCats@feddit.it 1 hour ago
Some do, some don’t, but more importantly: most just don’t care.
I had a tester wander into a set of edge cases which weren’t 100% properly handled and their first reaction was “gee, maybe I didn’t see that, it sounds like I’m going to have a lot more work because I did.”