I have a complex code base with tight connections between functions, and I cannot easily write unit tests.
Does the source code need to know about the test environment, should it know that it is being tested?
To indicate that it has been verified or can be easily done through the global flag, but I am afraid that this could cause a lot of confusion in the long run .
source
share