Skip to content

wadefelix/gtxslt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b20b50d · Jan 28, 2022

History

18 Commits
May 3, 2012
Jan 28, 2022
Jan 28, 2022
Jan 28, 2022
Sep 22, 2016
Jan 21, 2020
Sep 22, 2016
Sep 22, 2016
Sep 22, 2016
May 5, 2012
Jan 28, 2022
May 4, 2012
May 4, 2012

Repository files navigation

gtxslt

XSLT for gTest's xml output

Here is the sample1's output:

sample1 's output

How To Use

M1. Insert Instructions Into Xml Files By WebServer(php)

gtest-result.php will do it.

docker-compose up -d

M2. Apply Patch To GoogleTest project

  1. apply patch
  2. copy gtest-result.dtd and gtest-result.xsl to your xml output dir.
  3. build and run your test project.
  4. 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!

About

XSLT for googletest's xml output

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published