adlawson/behat-parallel

并行Behat进程

0.1.0 2013-09-02 22:54 UTC

This package is not auto-updated.

Last update: 2024-09-23 15:10:25 UTC


README

Parallel

版本: 0.1.0

并行运行Behat测试。shell脚本简单地使用find遍历测试目录以获取测试,并使用xargs在单独的进程中运行每个测试。您仍然可以使用所有标准的Behat命令行参数。

您可以选择任何安装方式,但我推荐Composer

{
    "require": {
        "adlawson/behat-parallel": "~0.1.0"
    }
}

命令行

$ behat-parallel -h

    Usage: behat-parallel [options] -- [behat options]

    Options:

        -b, --bin        Behat binary (default: ./vendor/bin/behat)
        -f, --features   Path to the features to run (default ./features/*.feature)
        -h, --help       This help prompt
        -p, --processes  Maximum parallel processes (default: 4)

    Example:

        behat-parallel --features=/path/to/features/**/*.feature -- --tags='@javascript'

致谢

本项目灵感来源于Linus Nortongrunt-parallel-behat,但它也可以在不使用Grunt的项目中使用。

贡献

我接受通过Pull Request对源代码的贡献。我对git实践、编码风格和命名约定相当挑剔,所以如果要求您修改提交,请不要生气。

$ make install
$ make tests

如果您已安装Vagrant,可以使用我们的开发环境来帮助开发。存储库将被挂载到/srv

$ vagrant up
$ vagrant ssh

Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
$ cd /srv

许可证

本库的内容由Andrew Lawson在MIT许可证下发布。
您可以在https://open-source.org.cn/licenses/mitLICENSE中找到此许可证的副本。