DEV Community

Discussion on: The Dev.to-Community's Opinion about Unit-Tests

Collapse
 
nateous profile image
Nate

Unit testing can be a pain sometimes. I generally don't unit test repository code. But some integration tests can help there.

Unit tests really shine when you have a method that takes in a few parameters. Easy to test.

That method that does all the things and is hundreds of lines long, not so much ;)