Test coverage tool for Behave test framework

我是研究僧i 提交于 2020-01-02 02:59:06

问题


We are using Behave BDD tool for automating API's. Is there any tool which give code coverage using our behave cases?

We tried using coverage module, it didn't work with Behave.


回答1:


You can run any module with coverage to see the code usage. In your case should be close to coverage run --source='.' -m behave

Tracking code coverage for Aceptace/Integration/Behaviour test will give a high coverage number easily but can lead to the idea that the code are properly tested.

Those are for see things working together, not to track how much code are well 'covered'.

Tying together unittests and coverages makes more sense to me.



来源:https://stackoverflow.com/questions/22144504/test-coverage-tool-for-behave-test-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!