舞动的测试框架的测试覆盖率工具 [英] Test coverage tool for Behave test framework

查看:160
本文介绍了舞动的测试框架的测试覆盖率工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用BDD舞动工具自动化的API。有没有用我们的行为的情况下这给code覆盖任何工具?

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.

推荐答案

您可以运行任何模块覆盖看到code用途。
你的情况应该是接近覆盖运行--source ='。 -m的行为

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

有关Aceptace /集成/测试行为跟踪code覆盖范围将很容易给予了很高的覆盖号码,但可能导致的想法,code正确测试。

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.

这些都是对看到的东西一起工作,不跟踪多少code是很好'覆盖'。

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

绑在一起单元测试和coverage,使我更有意义。

Tying together unittests and coverages makes more sense to me.

这篇关于舞动的测试框架的测试覆盖率工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆