Testomatio Demo Tests for Codeception.
- PHP 8.0+ with pdo_sqlite extension is required.
- Composer Package Manager
Clone this repository:
git clone git@github.com:testomatio/examples.git && cd examples/codeception
Install dependencies
composer install
- Create empty project in Testomat.io
- Obtain API key from Testomat.io
- Run
php vendor/bin/list-tests teststo upload tests data into testomat.io. Pass api key asTESTOMATIOenvironment variable:
TESTOMATIO={apiKey} php vendor/bin/list-tests tests
Environment variables It is recommended to store Testomatio API Key as environment variable and never save it in the source code. Set them directly when running tests or within .env file to save environment variable in a file and load them for tests.
Get API key from a project in Testomat.io and set it as environment variable TESTOMATIO:
TESTOMATIO={apiKey} php vendor/bin/codecept run --ext "Testomatio\Reporter\Codeception"