NUnit XML Output

"Mark Mayo" <[email protected]> Thu, 14 Aug 2008 16:45:46 +0100
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <[email protected]>
Hi,

A query on the XML output file (TestResults.xml).  I'm running some
overnight tests in an environment where occasionally we run out of memory
(even with 4 gigs).  While most of that memory issue is to do with the
environment apps and our products, I did wonder whether NUnit could be
changed slightly to assist with this.

Looking at the processes in the event that it does get close to max memory,
it's evident that nunit-console.exe is reaching a virtual size of around 1.7
gigs (initial virtual size on machine is 440mb).  I realise there's a
different between virtual and private sizes, but regardless, it's growing.
My initial thought was memory leak, but wondered if infact it were the test
results being stored, and indeed the test result XML file does not appear to
be created until the end of the tests (and certainly CruiseControl has
nothing to merge with).

With that in mind, there are a couple of possible options:

1) Is it possible to flag an option to auto-flush the output after every
test fixture, for example, negating the need to store all that in memory? In
addition that would provide CruiseControl with interim results in the event
our environment did go belly-up.
2) Alternatively, a means of saving the results as it goes, or possibly
changing Nunit to write incremental XML output files? (may be more suitable
to the developers mailing list, in which case I can switch to that)

Just wanted to see if there was an option out there that I'm missing, or
whether I should be heading into the code :)

Cheers,

Mark

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users