Remco;7947 wrote:
Those are some fairly extreme times for a single project. How large is this project?
1 213 files, and (according to NCrunch Metrics) Code Lines 172 030 Compiled Lines 68 870
Remco;7947 wrote:
Because NUnit is responsible for the heavy lifting in the discovery process, there are no opportunities for optimisation here other than switching the framework utilisation type to 'StaticAnalysis' so NCrunch can do this work using metadata instead.
Ok that's a pity, do you know if this performs better with e.g. xUnit or are basically all test frameworks the same with respect to the performance during the "analyse stage" ?
Remco;7947 wrote:
The first thing I would recommend if you want to improve your build/discovery times on a test project this size is to look at breaking up the project.
Yeah this is an ongoing work, which itself leads me to another perf problems. Since mosts tests involve NHibernate each NCrunch test host must fire up a static NH Session factory which takes about 10s, so the more projects I introduce the more test runners I must allow to sit idle to be able to reuse as many as possible to avoid this 10s overhead. Now I have set this figure to 15.
(I am not sure when actually the test host can be reused though, they seem to start quite often according to process explorer anyhow)
Thanks.