我正在使用Hudson來連續構建Python項目。單元測試和代碼覆蓋工作的偉大,但鑽入的Cobertura覆蓋報告我的文件,這些文件不單元測試時出現此消息:Hudson「源代碼不可用」。
Source code is unavailable.Some possible reasons are:
* This is not the most recent build (to save on disk space, this plugin only keeps the most recent builds source code).
* Cobertura found the source code but did not provide enough information to locate the source code.
* Cobertura could not find the source code, so this plugin has no hope of finding it.
奇怪的是,該單元的源代碼測試被發現並顯示。我試圖手動將其他.py文件的源文件複製到~/.hudson/jobs/<projectname>/cobertura
(單元測試被複制),但它不起作用。
有什麼建議嗎?
這對Jenkins來說不適用於我。我嘗試了一個絕對路徑到我的源代碼,並且它不起作用。我在https://github.com/gotwarlost/istanbul/issues/50上看過,該路徑應該與Jenkins工作區Cobdura目錄相關。我嘗試過,並相對於工作區目錄,但都沒有工作。誰能幫忙? – Mawg