In production environment we have to make sure that applications are working properly every time we add new features or make fixes in current code base, this can be done using automated testing procedures. There are various software testing suites and of one of them is codeception. The codeception can be installed locally to your project folder or globally in your development machine.

Installing Codeception Test

the can be achieved easily using a package manager like php composer. In case of local installation in command line we type the following and only for the global case we add the flag global after the require command

composer require "codeception/codeception=2.1.*" 
composer require "codeception/specify=*"
composer require "codeception/verify=*"

gloabal case composer require global "codeception/codeception=2.1.*"

In global machine installation you can check the packages of composer as typing the follow

composer global status

In the global case the packages from composer are installed in home directory in hidden folder called .composer let's find it

cd ~/.composer

then we have to add this directory ~/.composer/vendor/bin to the path PATH environment variable in ~/.profile file

add the following 
export PATH=$PATH:~/.composer/vendor/bin

Now we can write tests and execute the from command line using codecept from command line.

3 Types of Test

There three types of tests unit , functional and acceptance Tests. A unit tests verify small parts of code if works properly for example the unit tests can test the function methods against various inputs against the expected results. Functional test are testing the functionality of using various scenarios that a user do in the applications. Acceptance test is almost the same as functional but the execution can be inside on brower where we can see a visual of testing flow while the test running application. Software testing web application in Saint Louis contact us. If you want to run the acceptance tests

codecept run acceptance

The testing of software is a necessary when writing any kind programma and pass shoudl pass from the procedures of an software testing company