This is a simple project to show how to use the Allure codeception extension with Codeception 5
- Install composer and run
composer install
in the root directory of this project. - Download and install Chrome browser & chromeDriver and put it in the root directory of this project.
- Run chromeDriver with
./chromedriver --url-base=/wd/hub
in the root directory of this project.
- Run all tests:
composer codecept-clean && composer codecept-run
- Run Acceptance tests:
composer codecept-clean && composer codecept-run acceptance
- Run Manual tests:
composer codecept-clean && composer codecept-run manual
- Run Unit tests:
composer codecept-clean && composer codecept-run unit
- Run Api tests:
composer codecept-clean && composer codecept-run api
Report will be generated in the tests/_output
directory.
You can download the report from the tests/_output
directory and open it in your allure report instance. Example,
free version of allure
The report from Allure TestOps should look like this (one of the test case is failed):
Also, you can find example of manual test case in the tests/acceptance/ManualTestCest.php
file.
It is a simple test cases with a few steps which realised "test case as a code" approach.
Manual tests: Manual test case in progress: Acceptance tests: Api tests:
Thanks for reading!