2013-08-19 55 views
3

我有TeamCity專業8.0.2。我建立了PHPUnit和Build運行成功。我的問題是測試選項卡沒有出現,所以我不能看到測試結果是什麼。我遵循這些指示:http://blog.jetbrains.com/webide/2013/01/continuous-integration-for-php-using-teamcity/TeamCity測試選項卡不顯示在TeamCity 8.0

而這是生成日誌。如果它有助於解決方案:

[09:32:46]Checking for changes 
[09:32:54]Publishing internal artifacts [09:32:54][Publishing internal artifacts] Sending build.start.properties.gz file 
[09:32:54]Clearing temporary directory: C:\BuildAgent\temp\buildTmp 
[09:32:54]Checkout directory: C:\BuildAgent\work\da454545e33b4979 
[09:32:54]Updating sources: server side checkout (11s) 
[09:32:54][Updating sources] Building incremental patch for VCS root: svn: https://riouxsvn.com/svn/teamcityphp 
[09:33:05][Updating sources] Repository sources transferred 
[09:33:05][Updating sources] Updating C:\BuildAgent\work\da454545e33b4979 
[09:33:05]Step 1/1: Run tests with coverage (Command Line) 
[09:33:05][Step 1/1] Starting: C:\BuildAgent\temp\agentTmp\custom_script6386721482072578369.cmd 
[09:33:05][Step 1/1] in directory: C:\BuildAgent\work\da454545e33b4979 
[09:33:06][Step 1/1] Process exited with code 0 
[09:33:06]Publishing internal artifacts 
[09:33:06][Publishing internal artifacts] Sending build.finish.properties.gz file 
[09:33:06]Publishing artifacts 
[09:33:06][Publishing artifacts] Collecting files to publish: [build/release/*7*, unitTests/codeCoverage => coverage.zip] 
[09:33:06][Publishing artifacts] Artifacts path 'build/release/*7*' not found 
[09:33:06][Publishing artifacts] Artifacts path 'unitTests/codeCoverage' not found 
[09:33:06]Build finished 
+0

這個問題可能更好地在http://www.jetbrains.com/support/teamcity/index.html上提出。 – Gordon

回答

1

TeamCity的命令行亞軍是運行任意指令的工具,所以它不跟蹤測試excution。

要收集測​​試結果,您應該添加構建功能:XML Report Processing。只要告訴它你有Ant JUnit報告,並將其指向正確的目錄(PHPUnit存儲結果的地方)