DEV Community

Discussion on: What is a unit test

Collapse
 
stealthmusic profile image
Jan Wedel

Great to hear pushing testing which unfortunately gets less or no focus in universities or crash courses!

Would be nice if you had done it in a TDD way since this was your teaser. Unit testing is not equal to TDD (it’s part of it).

Collapse
 
gvetri profile image
Giuseppe Vetri

Nobody thinks about the tests in the crash courses or universities; that's why I wanted to learn more about this topic. When I used to work in a consultant company, you can't make a test if the client doesn't pay for it. I wanted to talk about TDD too, but I choosed to talk only about unit testing when I was finishing it and instead talk about TDD in another post.

Collapse
 
stealthmusic profile image
Jan Wedel • Edited

I’ve worked in such scenarios like customer projects and the misconception is that you should ask customers if you are allowed to test.

This is just part of the software. So testing Must be included in testing but it’s not optional.

I’ve written about it in this article if you would like to read it:

Thread Thread
 
gvetri profile image
Giuseppe Vetri

I agree with you. That's why I've been learning about this topic lately. Great article 👏