I am in the process of porting a NAnt build script to MSBuild 4.0 and I am seeing a rather interesting behaviour.
MSBuild is slightly faster when executing filesystem and compilation tasks, but takes twice as long to run NUnit tests.
Here's some background info:
- I am using nant-0.91-alpha2 and MSBuild 4.0
- I am using NUnit v2.5.7
- NAnt script uses the native
<nunit2 />
task - In MSBuild script, I have tried running NUnit using
<Exec />
task and<NUnit />
task (from MSBuild Community Tasks) - performance was the same (equally bad) - In NAnt script, I have tried running Nunit using
<exec />
task and performance decreased in the same way as with MSBuild
Has anyone else experienced this?
Is there something special about the way native <nunit2 />
task is implemented in NAnt?
Note: There are 2 test assemblies and both take twice as long to run under MSBuild. Typical test execution time under NAnt is 4 seconds, under MSBuild - 8 seconds.