Skip to content

Commit

Permalink
OXDEV-7845 Add test running aliases to composer.json and fix codecept…
Browse files Browse the repository at this point in the history
…ion defaults

Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Mar 25, 2024
1 parent bb81e72 commit a04bd6d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
13 changes: 9 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@
"bin/oe-console"
],
"config": {
"allow-plugins": {
"oxid-esales/oxideshop-composer-plugin": true,
"oxid-esales/oxideshop-unified-namespace-generator": true
}
"allow-plugins": false
},
"extra": {
"oxideshop": {
Expand All @@ -99,6 +96,14 @@
],
"oe:ide-helper:generate": [
"if [ -f ./vendor/bin/oe-eshop-ide_helper ]; then oe-eshop-ide_helper; fi"
],

"phpunit": "vendor/bin/phpunit --bootstrap=/var/www/source/bootstrap.php --config=phpunit.xml",
"phpunit-coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --bootstrap=/var/www/source/bootstrap.php --config=phpunit.xml --coverage-html=tests/reports/coverage",

"codeception": [
"Composer\\Config::disableProcessTimeout",
"vendor/bin/codecept run acceptance -c tests/codeception.yml"
]
}
}
6 changes: 4 additions & 2 deletions tests/Codeception/config/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
use OxidEsales\Facts\Facts;
use OxidEsales\Codeception\Module\Database\DatabaseDefaultsFileGenerator;

require_once "/var/www/source/bootstrap.php";

$facts = new Facts();

return [
Expand All @@ -26,10 +28,10 @@
'FIXTURES_PATH' => getTestFixtureSqlFilePath(),
'MYSQL_CONFIG_PATH' => getMysqlConfigPath(),
'SELENIUM_SERVER_PORT' => getenv('SELENIUM_SERVER_PORT') ?: '4444',
'SELENIUM_SERVER_HOST' => getenv('SELENIUM_SERVER_HOST') ?: '127.0.0.1',
'SELENIUM_SERVER_HOST' => getenv('SELENIUM_SERVER_HOST') ?: 'selenium',
'PHP_BIN' => (getenv('PHPBIN')) ?: 'php',
'SCREEN_SHOT_URL' => getenv('CC_SCREEN_SHOTS_URL') ?: '',
'BROWSER' => getenv('BROWSER_NAME') ?: 'firefox',
'BROWSER' => getenv('BROWSER_NAME') ?: 'chrome',
'THEME_ID' => getenv('THEME_ID') ?: 'apex',
];

Expand Down

0 comments on commit a04bd6d

Please sign in to comment.