codeception.com
Db - Codeception - Documentation
http://codeception.com/docs/modules/Db
Russian Forum @ AT.info. Works with SQL database. The most important function of this module is to clean a database before each test. That’s why this module was added to the global configuration file. To have your database properly cleaned you should configure it to access the database. This module also provides actions to perform checks in a database. In order to have your database populated with data you need a raw SQL dump. Simply put the dump in the. Statements in the dump. Supported but not tested.
codeception.com
Quick Start Codeception
http://codeception.com/quickstart
Russian Forum @ AT.info. Codeception PHP Testing Framework is designed to work just out of the box. This means its installation requires minimal steps and no external dependencies preinstalled (except PHP, of course). Only one configuration step should be taken and you are ready to test your web application from an eye of actual user. Requirements: PHP5.3, CURL enabled. Composer require "codeception/codeception" / ./vendor/bin/codecept. Wget http:/ codeception.com/codecept.phar download. It's PHP script ...
codeception.com
Queue - Codeception - Documentation
http://codeception.com/docs/modules/Queue
Russian Forum @ AT.info. Works with Queue servers. Testing with a selection of remote/local queueing services, including Amazon’s SQS service Iron.io service and beanstalkd service. Supported and tested queue types are:. The following dependencies are needed for the listed queue servers:. Beanstalkd: pda/pheanstalk 3.0. Contact: nathan.macnamara@outlook.com. Type - type of queueing server (defaults to beanstalkd). Port: 11300 - port number for the queue server. Token - Iron.io access token. Modules: enab...
codeception.com
08-Customization - Codeception - Documentation
http://codeception.com/docs/08-Customization
Russian Forum @ AT.info. In this chapter we will explain how you can extend and customize file structure and test execution routines. One Runner for Multiple Applications. In case your project consists of several applications (frontend, admin, api) or you use Symfony framework with its bundles, you may be interested in having all tests for all applications (bundles) to be executed in one runner. In this case you will get one report that covers the whole project. Configs you want to include. This will lau...
codeception.com
Asserts - Codeception - Documentation
http://codeception.com/docs/modules/Asserts
Russian Forum @ AT.info. Special module for using asserts in your tests. Checks that haystack contains needle. Checks that variable is empty. Checks that two variables are equal. Checks that condition is negative. Checks if file exists. Checks if file doesn’t exist. Checks that actual is greater than expected. Checks that actual is greater or equal than expected. Checks that actual is less than expected. Checks that actual is less or equal than expected. Checks that haystack doesn’t contain needle. Allow...
codeception.com
10-WebServices - Codeception - Documentation
http://codeception.com/docs/10-WebServices
Russian Forum @ AT.info. The same way we tested a web site, Codeception allows you to test web services. They are very hard to test manually, so it’s a really good idea to automate web service testing. We have SOAP and REST as standards, which are represented in corresponding modules, which we will cover in this chapter. You should start by creating a new test suite, (which was not provided by the. Command). We recommend calling it api. Php codecept generate:suite api. We will put all the api tests there.
codeception.com
09-Data - Codeception - Documentation
http://codeception.com/docs/09-Data
Russian Forum @ AT.info. This chapter summarizes all of the notices on cleaning ups from the previous chapters and suggests the best strategies of how to choose data storage backends. Module, which takes on most of the tasks of database interaction. By default it will try to repopulate the database from a dump and clean it up after each test. This module expects a database dump in SQL format. It’s already prepared for configuration in. Options, which may be set to. In acceptance tests your tests are inte...
codeception.com
PhpBrowser - Codeception - Documentation
http://codeception.com/docs/modules/PhpBrowser
Russian Forum @ AT.info. To interact with your application over CURL. Module works over CURL and requires PHP CURL extension. Use to perform web acceptance tests with non-javascript browser. If test fails stores last shown page in ‘output’ dir. Please review the code of non-stable modules and provide patches if you have issues. Start url of your app. Handler (default: curl) - Guzzle handler to use. By default curl is used, also possible to pass. Or any valid class name as Handler. Curl - curl options.
codeception.com
11-Codecoverage - Codeception - Documentation
http://codeception.com/docs/11-Codecoverage
Russian Forum @ AT.info. At some point you want to review which parts of your application are tested well and which are not. Just for this case the CodeCoverage. To collect coverage information. To enable code coverage put these lines in the global configuration file. That’s ok for now. But what files should be present in final coverage report? You can filter files by providing blacklist and whitelist filters like this:. What are whitelists and blacklists? To match all models. The basic codecoverage can ...
SOCIAL ENGAGEMENT