Recommendations: Unit Test structuring

I am a bit confused. I got a project that applies to unit tests in different assemblies. The co-developer created another project + another unit test assembly. Now we want to mix some logic between unit test projects (object objects, some initialization tasks, injection / mocking helpers, etc.). This will cause his project to reference mine builds.

I found a point that denotes assembly 1 unit test for the entire project (sometimes 2, where 2 contains integration tests). Is it correct? If not - where to put this common logic for unit tests?

+3
source share
2 answers

, , , " ". :

"" , . "" unit test . :

  • "" . .
  • "" "" . (, ).
  • " X" "".
  • " X" "Module" ""

" X" , , Y.

+3

, , . , , . . , , / .

( " " ), . , (, ) .

, unit test/mocking/DI frameworks! , , , .

+1

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


All Articles