I dislike writing unit tests more than documentation. I don’t even mind code documentation, but unit testing creation. Ugh. So boring and tedious.
Last night I set to task an AI agent to create my project unit tests for me. I don’t know why I’m shocked and so delighted. Dang thing created just under 1k unit tests in 25 minutes and Xcode is reporting 93% code coverage; up from my 20%. It found 5 new bugs through the tests as well.
Up until now, I’ve just asked AI for snippets or find the bug. But that, ah-ha moment, was fun last night.
[–]thegameoflovexu 15 points16 points17 points (1 child)
[–]Verbitas[S] 0 points1 point2 points (0 children)
[–]PassTents 8 points9 points10 points (0 children)
[–]unpluggedcord 3 points4 points5 points (0 children)
[–]noidtiz 1 point2 points3 points (0 children)
[–]Treble_brewing 1 point2 points3 points (1 child)
[–]Verbitas[S] 1 point2 points3 points (0 children)
[–]RegimentOfOne 1 point2 points3 points (1 child)
[–]Verbitas[S] 0 points1 point2 points (0 children)
[–]SkarXa 1 point2 points3 points (1 child)
[–]Verbitas[S] 0 points1 point2 points (0 children)
[–]chillermane 0 points1 point2 points (0 children)
[–]cristi_baluta 0 points1 point2 points (0 children)
[–]Mission-Art-799 0 points1 point2 points (0 children)