我正在使用Hudson不断构建Python项目。单元测试和代码覆盖率工作得很好,但是当我为我的不是单元测试的文件钻取Cobertura 覆盖率报告时会出现此消息:
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
(单元测试被复制的地方),但它不起作用。
有什么建议么?