Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zyab1ik/learncodeceptionproject
Example of using Allure php adapter with codeception 5
https://github.com/zyab1ik/learncodeceptionproject
allure-report codeception php81 php82 testops
Last synced: 3 months ago
JSON representation
Example of using Allure php adapter with codeception 5
- Host: GitHub
- URL: https://github.com/zyab1ik/learncodeceptionproject
- Owner: zyab1ik
- Created: 2023-01-19T15:54:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T09:18:33.000Z (10 months ago)
- Last Synced: 2024-11-18T22:43:42.954Z (3 months ago)
- Topics: allure-report, codeception, php81, php82, testops
- Language: PHP
- Homepage: https://zyab1ik.github.io/LearnCodeceptionProject/
- Size: 3.26 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Description
This is a simple project to show how to use the [Allure codeception](https://github.com/allure-framework/allure-php-commons2/releases/tag/v2.2.0) extension with [Codeception 5](https://codeception.com/07-28-2022/codeception-5.html)# How to use
#### Preparation:
1. Install composer and run `composer install` in the root directory of this project.
2. Download and install [Chrome browser & chromeDriver](https://sites.google.com/a/chromium.org/chromedriver/downloads) and put it in the root directory of this project.
3. Run chromeDriver with `./chromedriver --url-base=/wd/hub` in the root directory of this project.#### Run:
1. Run all tests: `composer codecept-clean && composer codecept-run`
2. Run Acceptance tests: `composer codecept-clean && composer codecept-run acceptance`
3. Run Manual tests: `composer codecept-clean && composer codecept-run manual`
4. Run Unit tests: `composer codecept-clean && composer codecept-run unit`
5. Run Api tests: `composer codecept-clean && composer codecept-run api`##### Report:
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](https://zyab1ik.github.io/codeception-allure-integration)The report from **Allure TestOps** should look like this (one of the test case is failed):
![Report with all cases](docs/images/Screenshot%202023-01-19%20at%205.01.14%20PM.png)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 tests](docs/images/Screenshot%202023-01-19%20at%205.09.01%20PM.png)
Manual test case in progress:
![Manual tests launch](docs/images/Screenshot%202023-01-19%20at%206.32.45%20PM.png)
Acceptance tests:
![Acceptance tests](docs/images/Screenshot%202023-01-19%20at%205.13.21%20PM.png)
Api tests:
![Api tests](docs/images/Screenshot%202023-01-19%20at%205.14.04%20PM.png)Thanks for reading!