31 Commits

Author SHA1 Message Date
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
f02d896a14 Fix tests 2021-10-16 00:40:47 +02:00
Anton Medvedev
446f481fb1 Disable test 2021-10-13 19:48:44 +02:00
Anton Medvedev
87bd48adc3 Add oncePerNode() 2021-10-12 22:49:11 +02:00
Anton Medvedev
0228fddfb0 Refactor OnceTest.php 2021-10-12 22:48:09 +02:00
Anton Medvedev
82c2b44561 Add oncePerNode() test 2021-10-12 22:47:59 +02:00
Anton Medvedev
70733a42b7 Refactor EnvTest.php 2021-10-12 22:47:44 +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
34b4114a81 Improve tests 2021-10-11 22:06:46 +02:00
Anton Medvedev
90db1c16d2 Improve tests 2021-10-11 22:03:43 +02:00
Anton Medvedev
456d8881a8 Fix e2e 2021-09-24 16:49:47 +02:00
Anton Medvedev
91409192b2 Fix e2e 2021-09-24 16:47:57 +02:00
Anton Medvedev
d4a4fdcbdc Fix e2e 2021-09-24 16:37:47 +02:00
Anton Medvedev
6b73b44a2f Fix e2e 2021-09-24 16:34:10 +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
f3152a5264 Fix worker process creation 2021-09-19 17:34:37 +02:00
Anton Medvedev
2d9a9dcfaa
Remove vars (#2596) 2021-07-01 23:17:23 +03:00
Markus Staab
2a5d5c2032
Support passing null as default in get() (#2560)
* Support passing `null` as $default in get()

* Update CHANGELOG.md

Co-authored-by: Markus Staab <m.staab@complex-it.de>
2021-06-17 07:30:44 +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
f0ac01a248 Update phpstan-baseline.neon 2021-04-15 22:53:41 +02:00
Alex Mayer
34dade5420
Remove Unused use Statements (#2476)
Ensure single empty line above and below use block
2021-03-27 10:28:25 +01:00
Anton Medvedev
d791a3b237 Fix e2e test 2021-03-16 22:35:49 +01:00
Anton Medvedev
4cb2f67067 Fix host level configuration for callback 2021-03-15 21:53:14 +01:00
Anton Medvedev
2205921bae Revert rename 2021-03-14 08:44:14 +01:00
Anton Medvedev
458d7b621f Rename fail() to onfail() 2021-03-13 22:03:49 +01:00
Anton Medvedev
93853465c6
Fix local tasks (#2457) 2021-03-13 11:50:45 +03: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