luka-zitnik/code-igniter-module

Make Codeception's functional tests for CodeIgniter applications

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

This package is not auto-updated.

Last update: 2024-12-21 21:25:29 UTC


README

Build Status

This is a Codeception module that enables you to make Codeception's functional tests for CodeIgniter applications.

Installation

Add a dev dependancy on luka-zitnik/code-igniter-module to your project's composer.json and enable it as a Codeception module, from a test suite configuration file.

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

Caveat

You will not be able to test execution paths that terminate with an exit statement using this module. More informingly, the separate thread that your AUT will run in will close without leaving you the opportunity to collect output or response header. If you need this fixed or if you just want to talk about it, drop me a line.