Dead4W / club_task

Calculator on Yii2 with Ajax & Codeception tests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Клуб Приключений" Test work

buddy pipeline

Code size Lines of Code


DIRECTORY STRUCTURE

apache2             contains apache configuration
src                 contains yii2 application source files

REQUIREMENTS

The minimum requirement by this project template that your Web server supports PHP 5.6.0.

INSTALLATION

Install manually with Composer

If you do not have Composer, you may install it by following the instructions at getcomposer.org.

You can then install this project depencies using the following command:

$ composer install

Install with a Dockerfile

$ docker build .

Install with Docker-compose

Start the container

$ docker-compose up -d

You can then access the application through the following URL:

http://127.0.0.1:8080

NOTES:

  • Minimum required Docker engine version 17.04 for development (see Performance tuning for volume mounts)
  • The default configuration uses a host-volume in your home directory .docker-composer for composer caches

TESTING

Tests are located in tests directory. They are developed with Codeception PHP Testing Framework. By default there are 3 test suites:

  • unit
  • functional
  • acceptance

Tests can be executed by running

$ php src/vendor/bin/codecept run

The command above will execute unit and functional tests. Unit tests are testing the system components, while functional tests are for testing user interaction. Acceptance tests are disabled by default as they require additional setup since they perform testing in real browser.

About

Calculator on Yii2 with Ajax & Codeception tests.


Languages

Language:PHP 78.4%Language:Shell 7.7%Language:CSS 4.4%Language:Awk 3.0%Language:Batchfile 2.5%Language:JavaScript 2.4%Language:Dockerfile 1.6%