How to test & code coverage

Posted by milofishiee@reddit | learnprogramming | View on Reddit | 7 comments

I just started working after university and realized I know next to nothing about testing. I did some searches and got bits and pieces, but I can't wrap my head about how to do it. Which types of testing do a programmer need to do, as the project progresses? Do I need to write unit test for every methods/functions I wrote?

More specifically, I'm working on a spring backend project with multiple microservices, can/how should I write tests for usecases?