archives

« Bugzilla Issues Index

#1472 — python command line runner should have additional logging options, including junit xml


The python test runner should have optional flags to control logging.

-option to save stdout to file
ie. -l --log #also log all output to given logfile

-option to save results as junit xml format
ie. --logjunit #log to junit output format

-option to specify descriptive junit top-level package
ie. --logjunitname #specify the toplevel name for to junit output (e.g. windows-stringOnly')


Also see Bug 1466 - should be command line argument to set logging level


Created attachment 45
Adding JUnit XML and logfile support to test262 test runner

The proposed patch adds JUnit XML support with output file specified with
option --junitname
and option to log stdout to logfile specified by option --logname


Created attachment 61
Adding JUnit XML and logfile support to test262 test runner

Adding two options to test262 python test runner:

--logname=LOGNAME Filename to save stdout to
--junitname=JUNITNAME Filename to save test results in JUnit XML format


As of 2014-Jul-17, this code is present in the test262.py runner.