XSLT for gTest's xml output
Here is the sample1's output:
gtest-result.php
will do it.
docker-compose up -d
- apply patch
- copy
gtest-result.dtd
andgtest-result.xsl
to your xml output dir. - build and run your test project.
- open
test_detail.xml
with browser.
# apply patch
cd googletest
git apply googletest-release-1.10.0.patch
# cd googletest
cd googletest
# CMake Build Samples Project
cmake -G "MinGW Makefiles" -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_MAKE_PROGRAM=make -Dgtest_build_samples=ON .
# Build Samples
make
# run sample
./sample1_unittest.exe --gtest_output=xml:./sample1_unittest.xml
Enjoy it!