我正在使用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