I am responsible for maintaining the msbuild scripts for a large project. The solution contains about 90 projects each having their own test project.
As part of the build process all test projects are agregated and mstest is called once:
mstest /textcontainer:project1 /testcontainer:project2 ...
This is no longer a viable solution as the constructed command is now about 12,000 characters long which exceeds the max length for a single command.
We have several options:
- creating a custom task to split the list of projects in a logical location and calling mstest twice.
- calling mstest once for each test project.
Are there any advantages/disadavantages to either option? Or possibly alternative solutions? NOTE: I do not have the ability to make changes to the project architecture, only the build scripts.