如何在不运行每个测试的情况下快速了解大型黄瓜套件中的场景和步骤数? [英] how can I get a quick count of the number of scenarios and steps in a large cucumber suite without running every test?

查看:122
本文介绍了如何在不运行每个测试的情况下快速了解大型黄瓜套件中的场景和步骤数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试过黄瓜--dry-run ,但它似乎只能在每个功能文件上使用。

I've tried cucumber --dry-run, but it only seems to work on a per feature file basis.

推荐答案

黄瓜--dry-run 将包括运行所有功能的场景和步骤的数量。

cucumber --dry-run will include the count of scenarios and steps for all features run.

例如,

给出两个功能文件:

test.feature:

test.feature:

Feature: 1

    Scenario: 1a
    Given step 1
    Given step 2

    Scenario: 1b
    Given step 1
    Given step 2    

test2.feature:

test2.feature:

Feature: 2

    Scenario: 2
    Given step 1

黄瓜--dry-运行运行,结果显示:

3 scenarios (3 skipped)
5 steps (5 skipped)

如您所见,场景和步骤数包括所有场景功能。

As you can see, the scenario and step counts are including all scenarios from all features.

这篇关于如何在不运行每个测试的情况下快速了解大型黄瓜套件中的场景和步骤数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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