1411
Tests are code too (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] ICastFist@programming.dev 13 points 2 years ago

I remember being asked to make unit tests. I wasn't the programmer and for the better part of a week, they didn't even let me look at the code. Yeah, I can make some great unit tests that'll never fail without access to the stuff I'm supposed to test. /s

[-] loutr@sh.itjust.works 13 points 2 years ago

I guess it would make sense if you're testing a public API? To make sure the documentation is sufficient and accurate.

[-] Natanael@slrpnk.net 11 points 2 years ago

Yeah blackbox testing is a whole thing and it's common when you need something to follow a spec and be compatible

[-] folkrav@lemmy.ca 3 points 2 years ago

He specifically said "unit tests" though, which aren't black box tests by definition

[-] lorty@lemmygrad.ml 2 points 2 years ago

It makes sense to do it like that if you are supposed to test requirements. Depending on the testing tools you have it might not be feasible unfortunately.

this post was submitted on 02 Nov 2023
1411 points (98.6% liked)

Programmer Humor

36621 readers
235 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS