Short background: I’ve been a developer for 3 years now. Full-stack, but my current job involves a lot more JS, than backend work.<p>I’ve read a lot about the importance of tests. You can assume I have a very abstract idea of topics like TDD, testable code, design for testability & the importance of tests in an evolving codebase.<p>But, I’m still very much deprived of motivations to actually spend time, writing tests.<p>#1. A lot of it is just procrastination, because I’ve never written any useful tests before & it feels like I need to know a lot more, for writing any useful tests.<p>#2. When I hold myself & sit down for writing tests, this is my thought sequence.<p>”The fake data that I’m going to pass as input for this function, is a static, dead, useless, hardcoded json.”<p>“For any useful feedback from the tests, I need to be feeding in fake data, that vary wildly and also it should look closely like real world, live, production data.”<p>“And I have to test the same function multiple times, with multiple types of fake data (dirty testing and such)”<p>“And the module I’m gonna write tests for has like, 148 functions!”<p>“And I have to mock this long list of interfaces & external calls”<p>“Jeez, that’s a lot of work!”<p>“Continue with #1”<p>I’m convinced that I have to change my perspective entirely, to overcome the procrastination.<p>Developers who’ve made the transition: How did you make it? What tricks can get me change my perspective? Advice please.