luka-zitnik/code-igniter-module

为CodeIgniter应用程序制作Codeception的功能测试

v1.0.3 2016-11-02 19:48 UTC

This package is not auto-updated.

Last update: 2024-09-28 19:52:41 UTC


README

Build Status

这是一个Codeception模块,它使您能够为CodeIgniter应用程序制作Codeception的功能测试。

安装

luka-zitnik/code-igniter-module 添加到项目的 composer.json 中作为开发依赖项,并在测试套件配置文件中启用它作为Codeception模块。

composer require --dev luka-zitnik/code-igniter-module
class_name: FunctionalTester
modules:
    enabled:
        - REST:
            depends: CodeIgniter
        - CodeIgniter:
            index: public/index.php

注意事项

使用此模块,您将无法测试以 exit 语句终止的执行路径。更有信息的是,您的自动测试运行将运行的独立线程将在不留下收集输出或响应头部的机会的情况下关闭。如果您需要修复此问题或只是想讨论它,请给我发邮件。