Bitwise - 2014-10-06

The feature you want is already implemented. I have Ubuntu, but do not develop on it. As a Windows developer, here is a script I use during my build process to create html output. You will need to translate to your environment. The output file I generate here is "UnitTestResults.xml", which is html internally. You can probably pick a different name. :-)

@echo off

setlocal enabledelayedexpansion

@rem Expected parameters
@rem
@rem param1: location of targets for the solution (not the project)
@rem param2: [optional] if non-blank, the unit test target (else all we can find)

@rem Determine if we are running debug or release (or other)
cd %1
set where=%cd%
set where=%where:Debug=xx%
set build=Debug
if "%cd%" == "%where%" set build=Release

@rem identify all files ending in _test.dll and _unittest.dll
set params=%2
if "%params%" NEQ "" goto :skipparams
dir /b _test.dll > filelist.tmp 2> NUL
dir /b
_unittest.dll >> filelist.tmp 2> NUL

for /f "usebackq delims=" %%a in (filelist.tmp) do set params=!params! %%a
del filelist.tmp
:skipparams

goto %build%

:debug
@rem del /Q "UnitTestResults.xml"
echo DllPlugInTesterd_dll.exe -c -x UnitTestResults.xml -s UnitTestReport.xsl clockerplugind.dll %params%
DllPlugInTesterd_dll.exe -c -x UnitTestResults.xml -s UnitTestReport.xsl clockerplugind.dll %params%
goto :EOF

:release
@rem del /Q "UnitTestResults.xml"
echo DllPlugInTester_dll.exe -c -x UnitTestResults.xml -s UnitTestReport.xsl clockerplugin.dll %params%
DllPlugInTester_dll.exe -c -x UnitTestResults.xml -s UnitTestReport.xsl clockerplugin.dll %params%
goto :EOF

:EOF