friends-of-behat/exclude-specifications-extension

允许在Behat测试中排除功能或场景。

v0.3.0 2022-02-07 10:46 UTC

This package is auto-updated.

Last update: 2024-09-07 16:08:49 UTC


README

允许在Behat测试中排除功能或场景。

使用说明

  1. 安装它

    $ composer require friends-of-behat/exclude-specifications-extension --dev
  2. 在您的Behat配置中启用它,并列出需要排除的功能

    # behat.yml
    default:
        # ...
        extensions:
            FriendsOfBehat\ExcludeSpecificationsExtension:
               features:
                   - vendor/library/features/feature_to_be_skipped.feature
                   - vendor/library/features/another_feature_to_be_skipped.feature
  3. 这就完成了!🎉 列出的功能将在执行Behat测试时被排除。