17 Commits

Author SHA1 Message Date
Anton Medvedev
3e1540440e Remove shallow() task method 2021-11-21 10:57:25 +01:00
Anton Medvedev
dcd7e75ee1 Rename getHost() to host() 2021-11-07 21:56:43 +01:00
Anton Medvedev
065c0121da Add disable/enable task methods 2021-11-07 21:30:06 +01:00
Anton Medvedev
eca779c847 Fix e2e 2021-11-05 16:15:01 +01:00
Anton Medvedev
704af44600 Fix ProcessRunner 2021-11-05 15:47:54 +01:00
Anton Medvedev
44dec5f76b Fix e2e 2021-10-21 21:32:26 +02:00
Anton Medvedev
ed2bf332c4 Fix e2e test 2021-10-21 21:13:23 +02:00
Anton Medvedev
36ef8aa8b3 Add new e2e tests 2021-10-21 21:08:07 +02:00
Anton Medvedev
08d1191148 Fix e2e tests 2021-10-11 22:30:05 +02:00
Anton Medvedev
4d49300f65 Debug e2e tests 2021-10-11 22:23:31 +02:00
Anton Medvedev
d5d0e34bb0 Fix e2e 2021-09-24 16:31:04 +02:00
Anton Medvedev
7fa6c6220d Fix e2e test 2021-09-24 16:23:14 +02:00
Anton Medvedev
2d9a9dcfaa
Remove vars (#2596) 2021-07-01 23:17:23 +03:00
Sacharski Bartłomiej
d3b6eaf9fe
Added support for code coverage in E2E tests (#2533)
The E2E docker-compose stack has been modified to include code
coverage for all scripts that are kept in /project and are not
in the exclusion list.

The start command for `deployer` container has been replaced
with a `start-e2e-test.sh` script, which will execute E2E tests,
generate a Clover report and then return the exit code of E2E test
process to make sure that CI is aware of the test result.

Whole idea for collecting E2E coverage has been inspired by the
[this][1] article. All of scripts in `deployer` container will
now start with additional wrapper-like PHP code, which checks
if the `PHP_CCOV_START_FILE` variable is present. If not,
then nothing happens, but if the variable points to a PHP file,
then that file is being included.

The `docker-compose.yml` file has `PHP_CCOV_START_FILE` configured
to point to a file, which sets up code coverage, that starts counting
which instructions in `/project` directory have been called. Once
`php` interpreter starts shutting down, the coverage report is being
dumped into temporary files.

Once all tests have been processed, a script for merging partial
coverage reports is executed and finally a Clover code coverage file
is stored in the path defined in the `PHP_CCOV_OUTPUT_FILE` env var.

[1]: https://tarunlalwani.com/post/php-code-coverage-web-selenium/
2021-05-02 15:15:19 +02:00
Sacharski Bartłomiej
165ffa119a
Implemented ConsoleApplicationTester for isolated E2E tests (#2513)
Added a new class ConsoleApplicationTester, which during E2E tests
will create a separate isolated process for the Deployer to run in.

This class exposes methods for interacting with stdin and to grab
stdout, stderr and status code of finished process.
2021-04-17 23:11:26 +03:00
Anton Medvedev
d791a3b237 Fix e2e test 2021-03-16 22:35:49 +01:00
Anton Medvedev
387b4c1d51
Update composer dependencies (#2453)
As well rename test dir to tests, as Pest does not support dir without s on the end.
Also, remove PHP requirement from composer.json as we already have check-in bin/dep and it's better to have the check only in one place (now they already out of sync).
2021-03-12 13:56:16 +03:00