DEV Community

Discussion on: Why You Should Be Unit Testing

Collapse
hilaberger92 profile image
Hila Berger

Great article!
I also thought that unit tests are unnecessary at the beginning, but I learned the hard way that it's very necessary and helpful!
Do you use unit tests also to detect bugs?

Collapse
restoreddev profile image
Andrew Davis Author

Thanks! Typically you will write a test every time you fix a bug to verify the bug is fixed and to make sure it doesn't come back again.

Collapse
hilaberger92 profile image
Hila Berger

Do you use any unit testing frameworks?

Thread Thread
restoreddev profile image
Andrew Davis Author

I mostly use PHPUnit for PHP and Xunit for Swift though there are a lot of options.

Thread Thread
hilaberger92 profile image
Hila Berger

Do you know any frameworks for C#/C++?