In this video we follow the third step of the Codeception quick start which is to generate our first test files.
However, deviating slightly from the Codeception quick start, we are going to go ahead and generate the four different types of test that Codeception provides for our use. These are:
The syntax we will need is:
php vendor/codeception/codeception/codecept generate:cept acceptance MyFirstAcceptanceTest php vendor/codeception/codeception/codecept generate:cest functional MyFirstFunctionalTest php vendor/codeception/codeception/codecept generate:unit unit MyFirstUnitTest php vendor/codeception/codeception/codecept generate:test unit MyFirstCodeceptionEnhancedPHPUnitTest
You can, of course, use the shorter syntax here.
There's lots more going on here including sub directories, some real world good practices to follow, and more.
If you have found this video helpful, please consider sharing. I really appreciate it.
|1||Installing Codeception in Your Symfony 2 Project||04:20|
|3||Codeception's Folder Structure||06:42|
|5||How to Run Codeception Tests||02:43|
|6||Our First Acceptance Test||08:00|
|7||An Alternative Perspective on Acceptance Testing||04:33|
|8||Acceptance Testing Symfony Forms||08:22|
|11||An Introduction to Unit Testing in Codeception||04:24|
|12||Unit Testing a Symfony Service||11:59|
|13||Integration with Symfony 2||06:27|
|14||Databases and Unit Tests||14:21|
|15||Real World Unit Testing - Database Clean Up Issues||06:15|
|16||Fast PHP Unit Testing with SQLite Database||10:19|
|17||Mocking the Entity Manager||20:22|
|18||Codeception Selenium Setup||06:08|
|19||How to Setup XDebug with PHPStorm||07:36|
|20||Step Objects and Page Objects||09:35|
|21||Fizz Buzz Kata||24:43|
|22||Code Coverage Reports||10:10|
|23||Running Acceptance Tests Faster With Phantom JS||01:30|
|24||Mobile Browser Tests||01:18|