MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1y04hnr/thosecodingera/19svqrf2zstk5/?context=3
r/ProgrammerHumor • u/Gloomy-Basket-1038 • 9d ago
821 comments sorted by
View all comments
Show parent comment
2
a test shouldn’t be more than a few lines anyway.
doubles
initiation
runtime
asserts
that's already more than few lines you mentioned without even using true code. You are talking out of your arse
don't get me started on mocking all the shit that you don't wanna initialize.
1 u/lobax 8d ago Maybe a English as a third language thing, but most of my unit tests are anything between 3 to a dozen lines long. For me that is a few lines.Obviously, any reusable scaffolding that one calls before all or before each test not included.
1
Maybe a English as a third language thing, but most of my unit tests are anything between 3 to a dozen lines long. For me that is a few lines.
Obviously, any reusable scaffolding that one calls before all or before each test not included.
View all comments
Show parent comment
2
u/AltrntivInDoomWorld 8d ago
doubles
initiation
runtime
asserts
that's already more than few lines you mentioned without even using true code. You are talking out of your arse
don't get me started on mocking all the shit that you don't wanna initialize.