I spend almost the same amount of time writing code to write tests. But I noticed that reduced a lot when working on static type languages.
What do you think? How well do you write tests?
I spend almost the same amount of time writing code to write tests. But I noticed that reduced a lot when working on static type languages.
What do you think? How well do you write tests?
For further actions, you may consider blocking this person and/or reporting abuse
aelassas -
Best Codes -
mtmattei -
Antonio | CEO at Litlyx.com -
Top comments (1)
I follow uncle bobs rules for writing tests; the 3 laws of TDD:
Also, you said "I noticed that reduced a lot when working on static type languages." When writing tests in dynamically typed languages you shouldn't be testing for types so really you should be writing an equivalent amount of tests. But I know this goes on, I've seen countless applications where people have written tests in dynamically typed languages like: "What happens if I put a string in here? ahh okay, now what happens if I put an int in here", this shouldn't happen.