Skip to content

zyab1ik/allure-codecept-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This is a simple project to show how to use the Allure codeception extension with Codeception 5

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 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

The report from Allure TestOps should look like this (one of the test case is failed): Report with all cases

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 Manual test case in progress: Manual tests launch Acceptance tests: Acceptance tests Api tests: Api tests

Thanks for reading!