Love this sentiment, I feel like it's too easy to forget that testing is all about increasing confidence in your code. Tests that don't do this are worse than no tests since they increase brittleness without providing value. It seems to me like tutorials on unit tests tend to mock/stub too readily, tutorials on integration tests are few and far between, integration tests are difficult to write and maintain, and integration testing tools (at least for JS) are generally still pretty fragmented and immature.
In short, I totally agree that it's very difficult especially for junior devs to learn how to test properly and to discover the value of testing – thanks for writing this post, looking forward to reading more of your thoughts on it!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Love this sentiment, I feel like it's too easy to forget that testing is all about increasing confidence in your code. Tests that don't do this are worse than no tests since they increase brittleness without providing value. It seems to me like tutorials on unit tests tend to mock/stub too readily, tutorials on integration tests are few and far between, integration tests are difficult to write and maintain, and integration testing tools (at least for JS) are generally still pretty fragmented and immature.
In short, I totally agree that it's very difficult especially for junior devs to learn how to test properly and to discover the value of testing – thanks for writing this post, looking forward to reading more of your thoughts on it!