14

Trying to love writing unit tests.

Comments
  • 2
    Good luck!
  • 3
    I love unit tests. When I write unit tests I know I will write better code.
  • 1
  • 1
    @smallTalker yup, I like unit tests when it go through my code and pop out green color. My concern is how to write the unit tests itself 😅
  • 2
    @Zerocchi yeah, I know that problem. Try writing the test first. Think about what input goes into the thing you're testing, and what input you want to come out.
  • 3
    I started to love unit tests when i started developing the tests as part of the development of the feature.
    Tests are taking the place if starting the program and manually clicking to the feature which is super annoying.
  • 2
    @smallTalker yup I'm doing it right now. Trying not to get overwhelmed and avoid writing unneeded stuff as well as learning this test framework. Thanks!

    @CWins yup. The sole reason why I decided to write unit tests instead. Also I'm dealing with APIs so not gonna test manually because it'll become really slow.
  • 2
    The next thing to focus is test coverage
Add Comment