fitenson/test-lab

Test Case Library for Yii2

v1.1.0 2025-08-26 11:26 UTC

This package is auto-updated.

Last update: 2025-08-26 11:40:08 UTC


README

Test Lab

Test Lab is a custom wrapper for Codeception in your Yii2 Advanced project. It allows you to run Codeception commands (like generate:suite, run, etc.) using a simpler custom entry file.

📌 Features

Custom entry point: ./test-lab

Pre-configured with:

REST module for API testing

Yii2 module with your backend test config

Custom helper: \Fitenson\TestLab\Codeception\ApiHelper

Shorter commands (e.g. ./test-lab generate:suite api instead of vendor/bin/codecept ...)

🚀 Installation

Go to your Yii2 Advanced project root.

Create a new file called test-lab (no extension).

Paste the following contents: #!/usr/bin/env php