I am building a dedicated project for all the unit tests of our main project, since including them in the main project would put a strain on an already huge codebase. Now all the units of the main project are referenced in the project's dpr file with their locations. When I write a testcase for a class I simply copy the classes unit reference (and the referenced units unit references) from the main project's dpr and paste it in the unit testing project.
This means that eventually I will end up with a dpr file that includes all the main projects dpr files unit references verbatim, which will be hard to maintain when the main projects dpr changes. We are talking about thousands of units here.
My Question is, can I somehow include all unit references of one project in another project? Simply having the main project compile its dcus in one directory and including this in the unit tests projects dcu search path is not sufficient because the units have initialization routines that must be executed.