public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* Harness XML output improvements
@ 2006-06-19 22:09 Anthony Balkissoon
  0 siblings, 0 replies; only message in thread
From: Anthony Balkissoon @ 2006-06-19 22:09 UTC (permalink / raw)
  To: mauve-patches

This patch improves the XML output from the Harness to be as verbose as
the standard output.  Includes line numbers for passes and fails, and
stack traces for uncaught exceptions.

2006-06-19  Anthony Balkissoon  <abalkiss@redhat.com>

	* RunnerProcess.java:
	(lastFailureMessage): New field.
	(runtest): Strip the "gnu.testlet" from the name passed to the 
	TestResult.  Also use the new 3 parameter TestResult.addException to 
	pass the stack trace to the TestResult.  Properly indent the stack 
	trace when printing exception details.
	(getStackTraceString): New method.
	(fail): Get the description from check2 and add the full failure 
	string to the TestResult.
	(check(Object, Object)): Likewise.
	(check(boolean, boolean)): Likewise.
	(check(int, int)): Likewise.
	(check(long, long)): Likewise.
	(check(boolean)): Likewise.
	(check2): Return the description.  Do not add the failure description 
	to the TestResult here, do it in the individual check() methods so that
	a full description can be added. Use the new TestResult.addPass(String)
	method instead of the old no argument method.
	* TestReport.java:
	(writeXML): Do not write the passCount value, write the passes as well
	as the fails, and write the stack traces for exceptions. Properly 
	indent the xml.
	* TestResult.java:
	(passCount): Removed this field.
	(passMessages): New field.
	(exceptionReason): New field.
	(addPass): Now takes in a String argument, acts just like addFail(). 
	Descriptions are taken in for passes as well as fails.
	(addException): Now takes 3 arguments instead of 2, the new argument is
	the stack trace for the exception.
	(getPassCount): Returns the size of the passMessages ArrayList.
	(getPassMessages): New method.
	(getExceptionReason): Likewise.

--Tony

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-19 22:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-19 22:09 Harness XML output improvements Anthony Balkissoon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).