logoalt Hacker News

kristjanssontoday at 2:51 AM2 repliesview on HN

And the tests. Oh god the tests. Personal recent favorite: I asked for some changes to a Dockerfile, which it did ably, and then promptly tested by writing a pytest module that traversed up to the root, read the Dockerfile, and checked that the added lines were present.


Replies

erutoday at 4:14 AM

Try property based testing perhaps.

show 3 replies
LPisGoodtoday at 2:55 AM

I regret this but at some point I stopped reading generated tests. It feels pointless when our test files are already tens of thousands of lines of — at best — tautological slip which says that the codes does what it does.

show 1 reply