Is there a way to set a constant depending on whether unit tests are run?
The problem with the unit test framework is de way it deals with dependencies; it will copy files but it does not seem to respect the directory structure. As a solution, I m checking whether the DEBUG
constant is set when looking for files to load but this raises problems when the project execution is not part of a testrun but when it s debug session run by the developer.
I have tried setting a TESTRUN
constant in the unit test project but this approach fails because it s not set for the project being debugged.