Skip to content

wadefelix/gtxslt

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