TeamCity+MSBuild+NCover OutOfMemory
TeamCity+MSBuild+NCover OutOfMemory
Hi, I run NCover console on TeamCity (continuous buid) using MSBuild task. Some tests allocate about 150MB and NCover failed reporting SystemOutOfMemory exception. I checked memory consumption before allocating (below 100MB) so there should be enough memory to allocate. Tests run from NUnit pass without any problem. NCover version: 3.1.4 NUnit: 2.5 TeamCity: 4.5 OS: Xp + SP3 Thank's Rafal
RE: TeamCity+MSBuild+NCover OutOfMemory
v3.1.4 is our original release.
Please upgrade to v3.3.0
http://www.ncover.com/download/current
Thank you,
Joe Feser
RE: TeamCity+MSBuild+NCover OutOfMemory
Hi,
I upgraded to v3.3.0 but didn't help.
Still have OutOfMemoryException.
I modified NUnit task and used /process=Multiple (for each assembly with unit tests run new process - no memory exception) but unfortunatelly coverage file is empty. Any idea how to solve it?
Thanks
Rafal
RE: TeamCity+MSBuild+NCover OutOfMemory
if you add "//pm nunit-agent.exe" to the NCover command line, along with the Nunit "/process=multiple" command, you should get coverage data back.
RE: TeamCity+MSBuild+NCover OutOfMemory
Thank's sporewell for reply. Your solution works fine.
Anyway I found another. I call NCover for each test assebly and at the end merge all coverage files in one report.
Regards
Rafal