我试图在nose2中加载"layers“插件,但是我不知道配置文件的格式。文档在这里:http://nose2.readthedocs.io/en/latest/plugins/layers.html,但是它没有包含要在配置文件中列出的模块名称。我之前已经加载了nose2的第三方插件,但现在我遇到了问题,预先安装的插件没有预先加载。这就是我现在的配置文件:
[unittest]
plugins = nose2_html_report.html_report
layers.Layers
layers.LayerReport
[html-report]
always-on = True
[layers-report]
always-on = True当我尝试使用这个.cfg文件运行时,我得到一个错误,告诉我layers.Layers不是一个包。
任何帮助或指导都将不胜感激!
发布于 2017-09-16 08:44:07
我一直在调查同样的问题!
下面的方法对我很有效。
[unittest]
plugins = nose2.plugins.layershttps://stackoverflow.com/questions/44762461
复制相似问题