How do we have a unit testing philosophy?

Hi, the stackoverflow family.

Undoubtedly, unit testing is of great importance for software development. But I think this is practice and philosophy, which is the first test. And most developers want to use this philosophy, but they cannot implement it in their project, because they are not used for testing Driven Development. Now my question concerns those who adhere to this philosophy. What are the properties of a good test according to your experience? And how do you incorporate it into your life.

Good days.

+3
source share
4 answers

Testivus .

  • , .
  • .
  • .
  • .
  • , .
  • - .
  • .
  • .
  • , .
  • .
  • .
  • .
+8

:

  • ( ) - , ;
  • ;
  • .
+2

, TDD . :

TDD

TDD :

  • - , unit test pass.
  • unit test, ; .
  • , , unit test.

:

  • You must reorganize your code while passing the tests.

While there are many more detailed examples, articles, and books, I think that these rules are good for tinting TDD.

+1
source

Source: https://habr.com/ru/post/1732664/


All Articles