From dc0c1989ae95c5085698e70cb88b66ae03f9ff98 Mon Sep 17 00:00:00 2001
From: cheatsnake <72691412+cheatsnake@users.noreply.github.com>
Date: Thu, 29 Dec 2022 19:43:21 +0300
Subject: [PATCH] translated subtopic about unit tests
---
README_ENG.md | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/README_ENG.md b/README_ENG.md
index df76e82..117bfeb 100644
--- a/README_ENG.md
+++ b/README_ENG.md
@@ -2037,12 +2037,32 @@ When developing server applications, different API formats can be used, dependin
## Testing
+Testing is the process of assessing that all parts of the program behave as expected of them. Covering the product with the proper amount of testing, allows you to quickly check later to see if anything in the application is broken after adding new or changing old functionality.
+
- ### Unit Tests
+ The simplest kind of tests. As a rule, about 70-80% of all tests are exactly [unit-tests](https://en.wikipedia.org/wiki/Unit_testing). "Unit" means that not the whole system is tested, but small and separate parts of it (functions, methods, components, etc.) in isolation from others. All dependent external environment is usually covered by [mocks](https://en.wikipedia.org/wiki/Mock_object).
+
+ - What are the benefits of unit tests?
+ > To give you an example, let's imagine a car. Its "units" are the engine, brakes, dashboard, etc. You can check them individually before assembly and, if necessary, replace or repair them. But you can assemble the car without having tested the units, and it will not go. You will have to disassemble everything and check every detail.
+ - What do I need to start writing unit tests?
+ > As a rule, the means of the standard language library are enough to write quality tests. But for more convenient and faster writing of tests, it is better to use third-party tools. For example:
+ >
+ > - For Python it uses [pytest](https://docs.pytest.org), although the standard [unittest](https://docs.python.org/3/library/unittest.html) is enough to start with.
+ > - For JavaScript/TypeScript, the best choices are [Jest](https://jestjs.io/).
+ > - For Go – [testify](https://github.com/stretchr/testify).
+ > - [And so on...](https://github.com/atinfo/awesome-test-automation#awesome-test-automation)
+
🔗 References
-