русский
Germany.ruForen → Архив Досок→ Programmierung

Unit Test. Кто использует?

25.11.16 17:46
Re: Unit Test. Кто использует?
 
Simple Nothing is f*cked
Simple
in Antwort MrSanders 25.11.16 17:42

Допиливать подразумевает не трогать лишнего :)

My problem is that the real world is not just about good code. One is often facing a ugly old codebase where you need to fix that one special bug and then leave the rest behind.
You neither have the time nor the intention to fix all those design and structural issues that where made in the past, but you want to get a basic feeling that your bugfix might work in production too.
So you mock as much as possible, isolate the problem, fix it and leave the test there so no one else will break it again.
 

Sprung zu