Skip to content

Commit d9be376

Browse files
committed
MQE-231: Allow data to extend other data
- Merged Develop into branch
2 parents cb49045 + c62b9d2 commit d9be376

File tree

86 files changed

+3634
-491
lines changed

Some content is hidden

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

86 files changed

+3634
-491
lines changed

RoboFile.php

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

bin/mftf

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,27 @@ if (PHP_SAPI !== 'cli') {
1111
exit(1);
1212
}
1313

14+
$autoload_path = realpath(__DIR__ . '/../../../autoload.php');
15+
$test_bootstrap_path = realpath(__DIR__ . '/../dev/tests/functional/_bootstrap.php');
16+
17+
if (file_exists($autoload_path)) {
18+
require_once $autoload_path;
19+
} else {
20+
require_once $test_bootstrap_path;
21+
}
22+
23+
1424
try {
15-
require_once __DIR__ . '/../bootstrap.php';
1625
$application = new Symfony\Component\Console\Application();
1726
$application->setName('Magento Functional Testing Framework CLI');
1827
$application->setVersion('1.0.0');
1928
$application->add(new Magento\FunctionalTestingFramework\Console\SetupEnvCommand());
29+
$application->add(new Magento\FunctionalTestingFramework\Console\CleanProjectCommand());
2030
$application->add(new Magento\FunctionalTestingFramework\Console\BuildProjectCommand());
31+
$application->add(new Magento\FunctionalTestingFramework\Console\GenerateSuiteCommand());
32+
$application->add(new Magento\FunctionalTestingFramework\Console\GenerateTestsCommand());
33+
$application->add(new Magento\FunctionalTestingFramework\Console\RunTestGroupCommand());
34+
$application->add(new Magento\FunctionalTestingFramework\Console\RunTestCommand());
2135
$application->run();
2236
} catch (\Exception $e) {
2337
while ($e) {

bootstrap.php

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

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"epfremme/swagger-php": "^2.0",
1717
"flow/jsonpath": ">0.2",
1818
"fzaninotto/faker": "^1.6",
19+
"monolog/monolog": "^1.0",
1920
"mustache/mustache": "~2.5",
2021
"symfony/process": "^2.8 || ^3.1 || ^4.0",
2122
"vlucas/phpdotenv": "^2.4"
@@ -34,6 +35,7 @@
3435
"symfony/stopwatch": "~3.4.6"
3536
},
3637
"autoload": {
38+
"files": ["src/Magento/FunctionalTestingFramework/_bootstrap.php"],
3739
"psr-4": {
3840
"Magento\\FunctionalTestingFramework\\": "src/Magento/FunctionalTestingFramework",
3941
"MFTF\\": "dev/tests/functional/MFTF"

composer.lock

Lines changed: 78 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/tests/_bootstrap.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@
66

77
error_reporting(~E_USER_NOTICE);
88
define('PROJECT_ROOT', dirname(dirname(__DIR__)));
9-
require_once PROJECT_ROOT . '/vendor/autoload.php';
10-
require_once 'util/MftfTestCase.php';
9+
10+
$vendorAutoloadPath = realpath(PROJECT_ROOT . '/vendor/autoload.php');
11+
$mftfTestCasePath = realpath(PROJECT_ROOT . '/dev/tests/util/MftfTestCase.php');
12+
13+
require_once $vendorAutoloadPath;
14+
require_once $mftfTestCasePath;
1115

1216
// Set up AspectMock
1317
$kernel = \AspectMock\Kernel::getInstance();
1418
$kernel->init([
1519
'debug' => true,
16-
'includePaths' => [PROJECT_ROOT . '/src'],
20+
'includePaths' => [PROJECT_ROOT . DIRECTORY_SEPARATOR . 'src'],
1721
'cacheDir' => PROJECT_ROOT .
1822
DIRECTORY_SEPARATOR .
1923
'dev' .

dev/tests/functional/MFTF/_bootstrap.php

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

0 commit comments

Comments
 (0)