DEV Community

Discussion on: We should waste time We should (waste time writing automated unit tests and documenting our code) as professional developers

Collapse
 
hminy572 profile image
hminy572

I've learned a lot. Huge thanks!

I am curious what is your opinion about unit tests in elixir phoenix specifically?
Is there your own strategy for test coding for Elixir Phoenix?
I've been coding Phoenix recently, and I sometimes wonder that how much test i i should code. if the main criterion is coverage rate, i just code tests to make coverage rate over like 85%, but things are not so simple. Even if a certain function is covered by some tests, sonetimes it doesn't mean that that test is well tested. It feels like infinite amount of tests would be necessary.

Collapse
 
elixirprogrammer profile image
Anthony Gonzalez

Everybody develops their own strategy, whatever makes you comfortable. It's not perfect, you should cover as much as possible, but not overthink it, you will never be 100% sure.

Collapse
 
hminy572 profile image
hminy572

Thank you for replying! It is all clear now. By the way, I really appreciate your contents. Those are very helpful. Happy coding ;)