mastodon.ar.al is one of the many independent Mastodon servers you can use to participate in the fediverse.
This is my personal fediverse server.

Administered by:

Server stats:

1
active users

Aral Balkan

Oh, you have 309 tests and 100% code coverage? That’s nice.

🤦‍♂️

@aral so, soon you'll have 310 tests? ;)

@aral Just because you run through every line of code while testing, doesn't mean at all these are bug free. Most tests in TDD are positive tests ("Putting A into function B results in behaviour C"), confining undefined behaviour especially in dynamicly typed languages, is a very different beast :D

The simple line:

result = input + 1

in JS has some many potential results, that you have to cover this line multiple times :D

@aral I find that more often than not, tests are only written to pass that arbitrary code coverage threshold needed for the pipeline to accept the commit :)

@flip1 Haha, not in this case but yes, folks love to game systems :)

@aral One must be a simple person to game their own system :D

@flip1
I think on some level and in some regards, everyone is gaming their own system.

"one more piece of cake is alright, i earned it."
"I didn't want to drink that much but today is special"
"I should be exercising but there's no time"
"I'm usually really polite but that person had it coming"

The stricter your rules the more likely you're breaking/gaming/forgetting about them, regularly. And completely watertight rules don't exist anyway.
@aral

@aral Off-topic: that's a beautiful theme! Is that just the terminal or the desktop's theme?