Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert Google test XML report to HTML (console)

I need an example (in some console tool) to convert generated gtest XML report to HTML. A solution mast be without using ant or Maven.

like image 363
Ted Avatar asked Oct 15 '13 07:10

Ted


2 Answers

you should use xslt to transform xml into html.

you could use the xsltproc tool from the command line under linux. I guess there are equivalent tools for other OSes.

like image 97
Stephane Rolland Avatar answered Oct 03 '22 12:10

Stephane Rolland


I did it for myself with programming language, which is Python 2.*: https://github.com/burlachenkok/gtest_report

Also this gtest_report supports comparision of 2 or more google test results.

If to be honest it was the prime goal.

like image 36
Konstantin Burlachenko Avatar answered Oct 03 '22 11:10

Konstantin Burlachenko