Skip to content

Commit 4722cd4

Browse files
BaDosshiftedreality
authored andcommitted
MAGECLOUD-3502: Rewrite docker integration tests to functional tests using Codeception (#451)
1 parent 693bfac commit 4722cd4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1031
-872
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
matrix:
2121
- TEST_SUITE=static-unit XDEBUG=true
2222
- TEST_SUITE=integration
23-
- TEST_SUITE=docker-integration
23+
- TEST_SUITE=functional
2424

2525
cache:
2626
apt: true

codeception.dist.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
paths:
2+
tests: src/Test/Functional
3+
output: tests/functional/_output
4+
data: tests/functional/_data
5+
support: tests/functional/_support
6+
envs: tests/functional/_envs
7+
actor_suffix: Tester
8+
settings:
9+
colors: true
10+
extensions:
11+
enabled:
12+
- Codeception\Extension\RunFailed
13+
params:
14+
- tests/functional/configuration.dist.yml
15+
modules:
16+
config:
17+
Magento\MagentoCloud\Test\Functional\Codeception\Docker:
18+
db_host: "%Magento.docker.settings.db.host%"
19+
db_port: "%Magento.docker.settings.db.port%"
20+
db_username: "%Magento.docker.settings.db.username%"
21+
db_password: "%Magento.docker.settings.db.password%"
22+
db_path: "%Magento.docker.settings.db.path%"
23+
repo_url: "%Magento.docker.settings.repo.url%"
24+
repo_branch: "%Magento.docker.settings.repo.branch%"
25+
system_ece_tools_dir: "%Magento.docker.settings.system.ece_dir%"
26+
system_magento_dir: "%Magento.docker.settings.system.magento_dir%"
27+
env_base_url: "%Magento.docker.settings.env.url.base%"
28+
env_secure_base_url: "%Magento.docker.settings.env.url.secure_base%"
29+
PhpBrowser:
30+
url: "%Magento.docker.settings.env.url.base%"

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
"phpunit/php-code-coverage": "^5.2",
2929
"phpunit/phpunit": "^6.2",
3030
"squizlabs/php_codesniffer": " ^3.0",
31-
"symfony/process": "^3.4"
31+
"symfony/process": "^3.4",
32+
"codeception/codeception": "^2.5.3",
33+
"consolidation/robo": "^1.2"
3234
},
3335
"replace": {
3436
"magento/ece-patches": "*",
@@ -49,7 +51,7 @@
4951
"psr-4": {
5052
"Magento\\MagentoCloud\\Test\\": "tests/static/",
5153
"Magento\\MagentoCloud\\Test\\Integration\\": "tests/integration/",
52-
"Magento\\MagentoCloud\\Test\\DockerIntegration\\": "tests/docker-integration/"
54+
"Magento\\MagentoCloud\\Test\\Functional\\": "tests/functional/"
5355
}
5456
},
5557
"scripts": {

src/Test/DockerIntegration/AcceptanceTest.php

Lines changed: 0 additions & 90 deletions
This file was deleted.

src/Test/DockerIntegration/AdminCredentialTest.php

Lines changed: 0 additions & 209 deletions
This file was deleted.

src/Test/DockerIntegration/Upgrade21Test.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)