Comment

Comment by quantumhobbit

The problem is that coverage tools report whether that line of code executed and not whether its logic is correct. This can easily give you a false sense of security.

So if I want to contribute to your project all I have to do is write some pointless tests that are sure to execute every single getter and setter method.(yes I have seen tests that exist solely to execute getters and setters). I don't have to actually test any known edge cases.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton