Skip to content

Commit fe05fe1

Browse files
authored
Merge branch 'develop' into brief-code-cleanup
2 parents 57c1ede + 1dc684a commit fe05fe1

File tree

15 files changed

+244
-745
lines changed

15 files changed

+244
-745
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Magento Functional Testing Framework Changelog
22
================================================
33

4+
2.3.11
5+
-----
6+
### Fixes
7+
* `mftf run:failed` now correctly regenerates tests that are in suites that were parallelized (`suite` => `suite_0`, `suite_1`)
8+
49
2.3.10
510
-----
611
### Enhancements

bin/mftf

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ try {
2929
try {
3030
$application = new Symfony\Component\Console\Application();
3131
$application->setName('Magento Functional Testing Framework CLI');
32-
$application->setVersion('2.3.10');
32+
$application->setVersion('2.3.11');
3333
/** @var \Magento\FunctionalTestingFramework\Console\CommandListInterface $commandList */
3434
$commandList = new \Magento\FunctionalTestingFramework\Console\CommandList;
3535
foreach ($commandList->getCommands() as $command) {

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/magento2-functional-testing-framework",
33
"description": "Magento2 Functional Testing Framework",
44
"type": "library",
5-
"version": "2.3.10",
5+
"version": "2.3.11",
66
"license": "AGPL-3.0",
77
"keywords": ["magento", "automation", "functional", "testing"],
88
"config": {
@@ -31,6 +31,7 @@
3131
"goaop/framework": "2.2.0",
3232
"codacy/coverage": "^1.4",
3333
"phpmd/phpmd": "^2.6.0",
34+
"phpunit/phpunit": "~6.5.0 || ~7.0.0",
3435
"rregeer/phpunit-coverage-check": "^0.1.4",
3536
"php-coveralls/php-coveralls": "^1.0",
3637
"symfony/stopwatch": "~3.4.6"

composer.lock

+48-48
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/tests/_bootstrap.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@
8282

8383
$paths = [
8484
$suiteDirectory . DIRECTORY_SEPARATOR . 'functionalSuite.xml',
85-
$suiteDirectory . DIRECTORY_SEPARATOR . 'functionalSuiteHooks.xml'
85+
$suiteDirectory . DIRECTORY_SEPARATOR . 'functionalSuiteHooks.xml',
86+
$suiteDirectory . DIRECTORY_SEPARATOR . 'functionalSuiteExtends.xml'
8687
];
8788

8889
// create and return the iterator for these file paths
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?php
2+
namespace Magento\AcceptanceTest\_suiteExtends\Backend;
3+
4+
use Magento\FunctionalTestingFramework\AcceptanceTester;
5+
use Magento\FunctionalTestingFramework\DataGenerator\Handlers\CredentialStore;
6+
use Magento\FunctionalTestingFramework\DataGenerator\Handlers\PersistedObjectHandler;
7+
use \Codeception\Util\Locator;
8+
use Yandex\Allure\Adapter\Annotation\Features;
9+
use Yandex\Allure\Adapter\Annotation\Stories;
10+
use Yandex\Allure\Adapter\Annotation\Title;
11+
use Yandex\Allure\Adapter\Annotation\Description;
12+
use Yandex\Allure\Adapter\Annotation\Parameter;
13+
use Yandex\Allure\Adapter\Annotation\Severity;
14+
use Yandex\Allure\Adapter\Model\SeverityLevel;
15+
use Yandex\Allure\Adapter\Annotation\TestCaseId;
16+
17+
/**
18+
* @Title("[NO TESTCASEID]: ExtendedTestInSuiteChildTest")
19+
* @group ExtendedTestInSuiteChildTest
20+
*/
21+
class ExtendedTestInSuiteChildTestCest
22+
{
23+
/**
24+
* @param AcceptanceTester $I
25+
* @throws \Exception
26+
*/
27+
public function _before(AcceptanceTester $I)
28+
{
29+
$I->amOnPage("/beforeUrl");
30+
}
31+
32+
/**
33+
* @param AcceptanceTester $I
34+
* @throws \Exception
35+
*/
36+
public function _after(AcceptanceTester $I)
37+
{
38+
$I->amOnPage("/afterUrl");
39+
}
40+
41+
/**
42+
* @param AcceptanceTester $I
43+
* @throws \Exception
44+
*/
45+
public function _failed(AcceptanceTester $I)
46+
{
47+
$I->saveScreenshot();
48+
}
49+
50+
/**
51+
* @Severity(level = SeverityLevel::TRIVIAL)
52+
* @Features({"TestModule"})
53+
* @Stories({"ExtendedTestInSuiteChildTest"})
54+
* @Parameter(name = "AcceptanceTester", value="$I")
55+
* @param AcceptanceTester $I
56+
* @return void
57+
* @throws \Exception
58+
*/
59+
public function ExtendedTestInSuiteChildTest(AcceptanceTester $I)
60+
{
61+
$I->comment("Different Input");
62+
}
63+
}

0 commit comments

Comments
 (0)