xunit: Add support for Google Test

Change-Id: I6a7d836ccb365533edbd0773a005d936fb8eef2a
This commit is contained in:
Tobias Henkel 2014-05-07 14:06:46 +02:00
parent 8839388aa3
commit f41de33ed0
3 changed files with 12 additions and 2 deletions

View File

@ -888,8 +888,8 @@ def xunit(parser, xml_parent, data):
:arg dict types: per framework configuration. The key should be \
one of the internal types we support:\
'aunit', 'boosttest', 'checktype', 'cpptest', 'cppunit', 'ctest', \
'embunit', 'fpcunit', 'junit', 'mstest', 'nunit', 'phpunit', 'tusar', \
'unittest', 'valgrind'.
'embunit', 'fpcunit', 'gtest', 'junit', 'mstest', 'nunit', 'phpunit', \
'tusar', 'unittest', 'valgrind'.
The 'custom' type is not supported.
@ -929,6 +929,7 @@ def xunit(parser, xml_parent, data):
'ctest': 'CTestType',
'embunit': 'EmbUnitType', # since plugin v1.84
'fpcunit': 'FPCUnitJunitHudsonTestType',
'gtest': 'GoogleTestType',
'junit': 'JUnitType',
'mstest': 'MSTestJunitHudsonTestType',
'nunit': 'NUnitJunitHudsonTestType',

View File

@ -17,6 +17,13 @@
<skipNoTestFiles>false</skipNoTestFiles>
<stopProcessingIfError>true</stopProcessingIfError>
</CppUnitJunitHudsonTestType>
<GoogleTestType>
<pattern>gtest.log</pattern>
<failIfNotNew>true</failIfNotNew>
<deleteOutputFiles>true</deleteOutputFiles>
<skipNoTestFiles>false</skipNoTestFiles>
<stopProcessingIfError>true</stopProcessingIfError>
</GoogleTestType>
</types>
<thresholds>
<org.jenkinsci.plugins.xunit.threshold.FailedThreshold>

View File

@ -18,3 +18,5 @@ publishers:
stoponerror: true
- cppunit:
pattern: "cppunit.log"
- gtest:
pattern: "gtest.log"