Re: NUnit XML Output
"Aiste Stikliute" <[email protected]> Mon, 18 Aug 2008 22:49:59 +0300
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Mark & Charlie / all, >> On the logging side - presumably at the end of the test, a >> XML write is called which includes validating the XML by >> closing tags at the end etc. Can this not be called after >> each fixture, just overwriting the previous file with the >> 'latest' results? To anyone that just uses the xml file >> created at the end, the behaviour would not have changed from >> their original usage, and for those that like the incremental >> results, the benefit is substantial (well for me it would be :)) > We could write the entire file at the end of each fixture, but > that seems a bit of a kluge, with potential bad side effects > down the road. For example, when we are running two fixtures > in parallel. I would join those who would like incremental logging. I actually wrote to this mailing list quite a while ago, asking if it was possible to flush the log file after each test, but it got lost or something. So I ended up implementing my own logging, with only the basic information I needed. It is still XML with all its advantages. I can't remember exactly now, but I think I overwrite it instead of appending. No clue about parallel running though - never used it or even thought it was possible :) However IMHO running two fixtures in parallel and need for incremental logging is equally common/incommon. Well, but even if I am not really sure how running tests in parallel works, I am quite sure that there's not so much overhead for implementing logging having it in mind. Maybe having separate log files, maybe merging them afterwards or maybe just synchronizing writing to the file. My main reason for incremental logging was one kind of tests crashing Nunit randomly, which I could not find a way to resolve. So I would just rerun the tests from where they crashed if it happened. Any other format for log files is acceptable for me, as long as they can be viewed comfortably (as xml is with xls). NUnit custom appendable format may be used with Nunit's own viewer, for example. Best regards, Aiste __________ Information from ESET NOD32 Antivirus, version of virus signature database 3365 (20080818) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ------------------------------------------------------------------------- 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=/