我们正在构建一个设置,在构建应用程序时将统计信息发送到外部服务器.有以下构建配置,包含几个步骤.
Write-Host "##teamcity[importData type='nunit' path='%report.monitoring.rules%' parseOutOfDate='true' verbose='true']"来处理它们Invoke-WebRequest -uri http://[host]/httpAuth/app/rest/builds/id:$buildId/statistics -Credential $creds -Headers @{"accept"="application/json"}问题是在第3步内,即使添加了暂停,我也无法获得统计信息.但是,只要构建完成,统计信息就会出现(例如响应中的此行
<property name="TotalTestCount" value="2"/>)
问题:在构建期间是否可以访问有关测试运行的信息?