• <legend id='3t3hM'><style id='3t3hM'><dir id='3t3hM'><q id='3t3hM'></q></dir></style></legend>
    • <bdo id='3t3hM'></bdo><ul id='3t3hM'></ul>
    <i id='3t3hM'><tr id='3t3hM'><dt id='3t3hM'><q id='3t3hM'><span id='3t3hM'><b id='3t3hM'><form id='3t3hM'><ins id='3t3hM'></ins><ul id='3t3hM'></ul><sub id='3t3hM'></sub></form><legend id='3t3hM'></legend><bdo id='3t3hM'><pre id='3t3hM'><center id='3t3hM'></center></pre></bdo></b><th id='3t3hM'></th></span></q></dt></tr></i><div id='3t3hM'><tfoot id='3t3hM'></tfoot><dl id='3t3hM'><fieldset id='3t3hM'></fieldset></dl></div>

    <small id='3t3hM'></small><noframes id='3t3hM'>

    1. <tfoot id='3t3hM'></tfoot>

      1. Behave测试框架的测试覆盖工具

        时间:2023-09-10
        <tfoot id='Uoluo'></tfoot>
        • <i id='Uoluo'><tr id='Uoluo'><dt id='Uoluo'><q id='Uoluo'><span id='Uoluo'><b id='Uoluo'><form id='Uoluo'><ins id='Uoluo'></ins><ul id='Uoluo'></ul><sub id='Uoluo'></sub></form><legend id='Uoluo'></legend><bdo id='Uoluo'><pre id='Uoluo'><center id='Uoluo'></center></pre></bdo></b><th id='Uoluo'></th></span></q></dt></tr></i><div id='Uoluo'><tfoot id='Uoluo'></tfoot><dl id='Uoluo'><fieldset id='Uoluo'></fieldset></dl></div>

          1. <legend id='Uoluo'><style id='Uoluo'><dir id='Uoluo'><q id='Uoluo'></q></dir></style></legend>
              <bdo id='Uoluo'></bdo><ul id='Uoluo'></ul>

              <small id='Uoluo'></small><noframes id='Uoluo'>

                    <tbody id='Uoluo'></tbody>
                • 本文介绍了Behave测试框架的测试覆盖工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我们正在使用 Behave BDD 工具来自动化 API.是否有任何工具可以使用我们的行为案例提供代码覆盖率?

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

                  我们尝试使用覆盖模块,但它不适用于 Behave.

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

                  推荐答案

                  您可以运行任何具有覆盖率的模块以查看代码使用情况.在你的情况下应该接近 coverage run --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/Integration/Behaviour 测试的代码覆盖率很容易给出较高的覆盖率,但可能会让人认为代码经过了适当的测试.

                  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.

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

                  上一篇:Robot Framework 调用的测试如何将信息返回到控制台 下一篇:鼻子框架命令行正则表达式模式匹配不起作用(

                  相关文章

                  最新文章

                    <i id='pUskq'><tr id='pUskq'><dt id='pUskq'><q id='pUskq'><span id='pUskq'><b id='pUskq'><form id='pUskq'><ins id='pUskq'></ins><ul id='pUskq'></ul><sub id='pUskq'></sub></form><legend id='pUskq'></legend><bdo id='pUskq'><pre id='pUskq'><center id='pUskq'></center></pre></bdo></b><th id='pUskq'></th></span></q></dt></tr></i><div id='pUskq'><tfoot id='pUskq'></tfoot><dl id='pUskq'><fieldset id='pUskq'></fieldset></dl></div>

                    <tfoot id='pUskq'></tfoot>
                  1. <legend id='pUskq'><style id='pUskq'><dir id='pUskq'><q id='pUskq'></q></dir></style></legend>

                      • <bdo id='pUskq'></bdo><ul id='pUskq'></ul>

                    1. <small id='pUskq'></small><noframes id='pUskq'>