---
title: "Comment by Dinys Monvoisin on \"The art of writing useful tests\" | Hashnode"
description: "In the apparent section, I believe that those books, tutorials are there for learning purpose, and that&#39;s why they use a simple example to explain every use"
url: "https://hashnode.com/posts/the-art-of-writing-useful-tests/5f6b0d59cbf0b22e6d444234/comment/5f7023e80ba48d6624c91ce5"
---

[Discussion](https://hashnode.com/posts/the-art-of-writing-useful-tests/5f6b0d59cbf0b22e6d444234)

Comment [The art of writing useful tests](https://hashnode.com/posts/the-art-of-writing-useful-tests/5f6b0d59cbf0b22e6d444234)

[Dinys Monvoisin](https://hashnode.com/@dinmon)

[Sep 27, 2020](https://hashnode.com/posts/the-art-of-writing-useful-tests/5f6b0d59cbf0b22e6d444234/comment/5f7023e80ba48d6624c91ce5)

In the apparent section, I believe that those books, tutorials are there for learning purpose, and that's why they use a simple example to explain every use cases. Also, those unit test can serve as documentation.

What about the question of the cost of writing unit test? Is it much more of a problem in businesses?

I found that the article lack of space.

[Douglas Parsons](https://hashnode.com/@dglsparsons)

[Oct 23, 2020](https://hashnode.com/posts/the-art-of-writing-useful-tests/5f6b0d59cbf0b22e6d444234/comment/5f7023e80ba48d6624c91ce5#reply-5f92e07e65ec1a6c2163b523)

Hey, thanks for the feedback. I'll bear the space in mind in future!

I agree that they are using a basic example to explain tests, I just think they don't explain when testing is appropriate.
