fitenson / test-lab
Test Case Library for Yii2
v1.1.0
2025-08-26 11:26 UTC
Requires
- codeception/codeception: ^4.0
- codeception/module-asserts: ^1.0.0
- codeception/module-phpbrowser: ^1.0.0
- codeception/module-yii2: ^1.0.0
- fakerphp/faker: ^1.13
- phpunit/phpunit: ^8.5
- yiisoft/yii2: ~2.0.0
- yiisoft/yii2-faker: ^2.0.0
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