Skip to content

Commit

Permalink
chore(makefile): Rework the E2E tests (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Jan 11, 2023
1 parent 79d212c commit 4a561ce
Show file tree
Hide file tree
Showing 7 changed files with 164 additions and 115 deletions.
265 changes: 161 additions & 104 deletions Makefile

Large diffs are not rendered by default.

Empty file added dist/.gitkeep
Empty file.
1 change: 0 additions & 1 deletion fixtures/build/dir012/expected-output

This file was deleted.

2 changes: 1 addition & 1 deletion fixtures/php-settings-checker/create-expected-output
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -Eeuox pipefail
set -Eeuo pipefail

# Generates the file with the expected output based on the template,
# replacing the placeholders of the template by the desired values.
Expand Down
2 changes: 1 addition & 1 deletion fixtures/php-settings-checker/output-pharreadonly-enabled
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[debug] The xdebug extension is not loaded
[debug] Configured `phar.readonly=0`
[debug] Process restarting (BOX_ALLOW_XDEBUG=internal||1|*|*)
[debug] Running /usr/local/bin/php ./box compile --working-dir=fixtures/php-settings-checker -vvv --no-ansi
[debug] Running /usr/local/bin/php bin/box.phar compile --working-dir=fixtures/php-settings-checker -vvv --no-ansi
[debug] Current memory limit: "-1"
[debug] Checking BOX_ALLOW_XDEBUG
[debug] Restarted (100 ms). The xdebug extension is not loaded
Expand Down
2 changes: 1 addition & 1 deletion fixtures/php-settings-checker/output-xdebug-enabled.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[debug] phar.readonly is disabled
[debug] The xdebug extension is loaded (__XDEBUG_VERSION__) xdebug.mode=develop
[debug] Process restarting (BOX_ALLOW_XDEBUG=internal|__XDEBUG_VERSION__|1|*|*)
[debug] Running /usr/local/bin/php ./box compile --working-dir=fixtures/php-settings-checker -vvv --no-ansi
[debug] Running /usr/local/bin/php bin/box.phar compile --working-dir=fixtures/php-settings-checker -vvv --no-ansi
[debug] Current memory limit: "-1"
[debug] Checking BOX_ALLOW_XDEBUG
[debug] Restarted (100 ms). The xdebug extension is not loaded
Expand Down
7 changes: 0 additions & 7 deletions tests/AutoReview/MakefileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ protected function getExpectedHelpOutput(): string
test: Runs all the tests
phpunit_coverage_html: Runs PHPUnit with code coverage with HTML report
phpunit_coverage_infection: Runs PHPUnit tests with test coverage
e2e_scoper_alias: Runs the end-to-end tests to check that the PHP-Scoper config API regarding the prefix alias is working
e2e_scoper_expose_symbols: Runs the end-to-end tests to check that the PHP-Scoper config API regarding the symbols exposure is working
e2e_check_requirements: Runs the end-to-end tests for the check requirements feature
e2e_php_settings_checker: Runs the end-to-end tests for the PHP settings handler
e2e_symfony: Packages a fresh Symfony app
e2e_composer_installed_versions: Packages an app using Composer\InstalledVersions
e2e_phpstorm_stubs: Project using symbols which should be vetted by PhpStormStubs
blackfire: Profiles the compile step
website_build: Builds the website
website_serve: Serves the website locally
Expand Down

0 comments on commit 4a561ce

Please sign in to comment.