Part 5 - Install and Bootstrap Codeception [How to use TDD to build a REST API in Laravel 6] @StudyStreamPlus
Part 5 - Install and Bootstrap Codeception [How to use TDD to build a REST API in Laravel 6]  @StudyStreamPlus
Uploaded October 2019 | Updated December 2026, 26 minutes ago
Like I said in a previous video, I would like to do as many things within PhpStorm as I can. Let’s open up our version control panel. You might see some idea files. It is not common practice to commit this to the repository. The idea files contain configurations for the IDE on a per project basis. We can ignore them in this tutorial. Let’s update our .gitignore file. For simplicity, feel free to revert the idea files you may have too.

We can commit our changes, using Ctrl + K. Wherever possible, I am going to be using shortcuts. I will let you know what they are, the first time I use them.

Now, let’s install Codeception. To install codeception, run the composer command:
“composer require codeception/codeception --dev”. The “--dev” flag will save Codeception as a dev requirement in our composer.json file. To speed up the download process, I will just skip ahead.

If we take a look in our project view, we can see our composer.json and composer.lock file has been updated. Let’s open up our composer.json. You can see Codeception has been added as a dev dependency.

Before we initialise Codeception. Let’s take a look at our Tests folder. We have some default Laravel stuff in here. Let’s get rid of it, to keep this folder clean. When we boootstrap Codeception, it will create new files here.

To bootstrap Codeception, open up the terminal. To save time, do this outside of Vagrant. Whenever you can do something, outside of the virtual machine, take the opportunity to do so. Whenever we run operations within the virtual machine, it is always going to be slower than out.

Run “vendor/bin/codecept”. This will give us a list of available commands. We want to use the Bootstrap command. So let’s run “vendor/bin/codecept bootstrap”. This will generate new files and folders in our test directory.

Let’s take a look. We now have Codeception installed and initialised. Let’s commit our work.

Watch next video:
youtu.be/JWW4r1xM4Q4

Watch this course in full here:
youtube.com/playlist?list=PLrIm-p2rpV0F-rl4NPjNslEmW-D83AHOr

Laravel Tutorials:
youtube.com/playlist?list=PLrIm-p2rpV0FmbeNsYYh_4Fcb4Ibq29tJ

2 - 3 min Developer Quick Tips Series:
youtube.com/playlist?list=PLrIm-p2rpV0F6yyK99B9TU6yVhnPdzelB
Part 5 - Install and Bootstrap Codeception [How to use TDD to build a REST API in Laravel 6]How to setup Vagrant with Laravel Homestead TutorialThe Factory Method Pattern explained with a REAL example | Design Patterns #11min Quick Tip - How to use Git Patch in PhpStorm 2019 tutorialApplying TDD with Laravel and PHPUnit Part 1 - TutorialGood Coding Standards - How to use PHP CodeSniffer TutorialLinear and Binary Search Algorithms Explained in Python with FULL codeBubble Sort Algorithm Explained in Python with FULL codePart 18-Handle failure gracefully Create endpoint [How to use TDD to build a REST API in Laravel 6]SOLID Principles - Liskov Substitution (PHP Tutorial Part 3/5)Part 27 - Install tymon/jwt-auth into Laravel 6 [How to use TDD to build a REST API in Laravel]Codeception Actors, Modules and Helpers - Tutorial [2/6]
StudyStream+ |

Part 5 - Install and Bootstrap Codeception [How to use TDD to build a REST API in Laravel 6]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER