I want to improve the roundtrip time when doing TDD. I guess the total compile time for the solution will be longer, but that is not important.
Background:
When I watch the output window during compiling when I wait for my unittest to run, I see that some time is spent only verifying that depended projects does not need to be build.
Statement:
Splitting the Testproject (today about 20k lines and dependency to nine other projects)
into smaller test projects where each testproject tests a smaller part of the code, will give me less dependencies and therefore increase compile time for the testproject I’m currently working with.
Views?
I would go down the route of splitting it into smaller projects making sure that the dependencies also drop. Circular references are the most important thing to watch out for.
The compile time may get longer but that can always be solved by investing in faster Hard drives, quicker CPUs and more RAM. Also by splitting it out you can speed up your build time if you have it running on a CI server because you can create run parallel tasks for each of the projects so instead of running synchronously, like VS would do normally, you can build each of them asynchronously and run then asynchronously.