简体   繁体   English

Sonarqube Python插件单元测试明细

[英]Sonarqube python plugin unit test drilldown

I have a python project analyzed with sonarqube, my project has some unit test inside it runned with nosetest, the sonarqube runner reads the XML generated by nose and shows me the statistic of the test (number of test, success, errors, failed and skipped). 我有一个使用sonarqube分析的python项目,我的项目中包含通过鼻子测试运行的一些单元测试,声纳赛跑者读取了鼻子生成的XML并向我显示了测试的统计信息(测试次数,成功,错误,失败和跳过的次数) )。

When i click on the number of errors it redirects me to a page with the sources of the test and show me the number of test with error per file. 当我单击错误数时,它会将我重定向到包含测试源的页面,并向我显示每个文件有错误的测试数。 Here is a picture: 这是一张图片:

http://i.imgur.com/XkUP6Nh.png?1 http://i.imgur.com/XkUP6Nh.png?1

Also if i call the rest API of sonarqube to get the result of unit test following this question in stackoverflow: Is it possible to gather unit test list & results on SonarQube 4.5? 另外,如果我在stackoverflow中按照以下问题调用sonarqube的其余API以获取单元测试的结果: 是否可以在SonarQube 4.5上收集单元测试列表和结果? i get all the information of each unit test (errors, traceback, etc...). 我获得了每个单元测试的所有信息(错误,回溯等)。

But i cant find this information (name of the unit test with errors, what is the error, trackebacks... Some kind of logs) inside sonarqube dashboard, after some test i've found this video: https://vimeo.com/5577540 so i think sonarqube can do it, but i dont seem to find the way. 但是我在声纳仪表板中找不到此信息(有错误的单元测试的名称,什么错误,引用,引用…某种日志),经过一些测试后,我发现此视频: https ://vimeo.com / 5577540,所以我认为sonarqube可以做到,但我似乎找不到办法。

Im using sonarqube 5.1.2 and python plugin 1.5 我正在使用sonarqube 5.1.2和python插件1.5

Thanks for any help you can provide! 感谢您的任何帮助,您可以提供!

This is a limitation of the SonarQube Python plugin. 这是SonarQube Python插件的局限性。 I created a ticket to improve that in a later version. 我创建了票证以在更高版本中进行改进。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM