From f62a8669d9db22935b71e85e47c9227d91d65a1e Mon Sep 17 00:00:00 2001 From: Rasmus Johansson Date: Tue, 7 Apr 2020 07:45:49 +0000 Subject: MENT-566 please add JUnit support to MTR to generate XML test result from run A new parameter has been added called xml-report, with which the filename of the XML file is given to which the XML result is written. There is also xml-package for adding a package value in the XML output. Example usage: ./mysql-test-run.pl main.events_bugs innodb.count_distinct main.explain_json innodb.file_format_defaults json.json_no_table --suite=main,innodb,json --force --xml-report=build123456789.xml --xml-package=simpletestrun --- mysql-test/mysql-test-run.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 62650da65e9..fb0043e643f 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -615,7 +615,9 @@ sub main { if ($opt_gcov) { system './dgcov.pl --purge'; } - + + + ####################################################################### my $num_tests= $mtr_report::tests_total= @$tests; if ( $opt_parallel eq "auto" ) { @@ -6683,6 +6685,7 @@ Misc options xml-report= Output jUnit xml file of the results. tail-lines=N Number of lines of the result to include in a failure report. + xml-report= Output jUnit xml file of the results. Some options that control enabling a feature for normal test runs, can be turned off by prepending 'no' to the option, e.g. --notimer. -- cgit v1.2.1