spiegel-keyman/common/windows/delphi/general/DUnitX.Loggers.TeamCity.pas
Marc Durdin 00b98f2286 fix(windows): emit nunit report path correctly and update TeamCity links
* Windows and Developer sources
* Fixes the report path to be fully qualified
* Adds the TeamCity report logger to remaining DUnitX automated tests

Fixes: #14197
Build-bot: skip build:windows,developer
Test-bot: skip
2025-08-20 07:21:03 +02:00

23 lines
407 B
ObjectPascal

unit DUnitX.Loggers.TeamCity;
interface
procedure ReportToTeamCity;
implementation
uses
System.SysUtils;
procedure ReportToTeamCity;
var
ReportPath: string;
begin
if GetEnvironmentVariable('TEAMCITY_GIT_PATH') <> '' then
begin
ReportPath := ExtractFilePath(ParamStr(0)) + 'dunitx-results.xml';
writeln('##teamcity[importData type=''nunit'' path='''+ReportPath+''']');
end;
end;
end.