Skip to content

MQE-1114: Merge the release branch to master #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 164 commits into from
Jul 19, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
d26a1c1
Added the 'waitForPageLoad' action after every 'amOnPage' action
Cristian101 Apr 2, 2018
c5624e2
Cleaned up some code
Cristian101 Apr 2, 2018
dfcd5c7
MQE-969: Add some missing @throws phpdoc annotations
tomreece Apr 19, 2018
6a94c87
MQE-980: [Annotations] <features> tag defaults to module
KevinBKozan Apr 26, 2018
35dd1fe
MQE-982: Verification Test around Suite Generation
aljcalandra Apr 26, 2018
9771e64
MQE-982: Verification Test around Suite Generation
aljcalandra Apr 26, 2018
9e1cc70
MQE-982: Verification Test around Suite Generation
aljcalandra Apr 26, 2018
dfc9d85
MQE-983: Unit Test for Module Resolver
aljcalandra Apr 27, 2018
f02c492
MQE-982: Verification Test around Suite Generation
aljcalandra Apr 27, 2018
a044fe6
MQE-983: Unit Test for Module Resolver
aljcalandra Apr 27, 2018
388c144
MQE-982: Verification Test around Suite Generation
aljcalandra Apr 27, 2018
5e69b81
MQE-982: Verification Test around Suite Generation
aljcalandra Apr 27, 2018
f0201e5
MQE-980: [Annotations] <features> tag defaults to module
KevinBKozan Apr 27, 2018
f52a408
Changed the location of the rewrite
Cristian101 Apr 29, 2018
4281fd4
Merge branch 'develop' of github.com:magento/magento2-functional-test…
Cristian101 Apr 29, 2018
b3cff79
Fixed error
Cristian101 Apr 30, 2018
4e1affe
Merge pull request #79 from rocketweb/waitforpageload-after-amonpage
KevinBKozan Apr 30, 2018
362f06c
MQE-982: Verification Test around Suite Generation
aljcalandra Apr 30, 2018
79243f5
MQE-985: Verification Test around Suite Generation
aljcalandra Apr 30, 2018
b938ede
MQE-983: Unit Test for Module Resolver
aljcalandra May 1, 2018
4aab74e
MQE-983: Unit Test for Module Resolver
aljcalandra May 1, 2018
9d7e4ce
MQE-812: Tests/Action Groups should infer order based on the top leve…
KevinBKozan May 1, 2018
2856684
MQE-978: Create Test Coverage Around SuiteGenerator Class
aljcalandra May 1, 2018
7ebd251
Merge branch 'develop' into MQE-982
imeron2433 May 1, 2018
e2e1aae
Merge branch 'develop' into MQE-978
aljcalandra May 1, 2018
ff0fbc2
MQE-812: Tests/Action Groups should infer order based on the top leve…
KevinBKozan May 1, 2018
a955ad1
Merge pull request #117 from magento/MQE-978
imeron2433 May 1, 2018
163b913
Merge branch 'develop' into MQE-982
imeron2433 May 1, 2018
241734e
Merge pull request #118 from magento/MQE-982
imeron2433 May 1, 2018
501c65a
Merge remote-tracking branch 'origin/develop' into MQE-969
tomreece May 2, 2018
c030dcc
MQE-812: Tests/Action Groups should infer order based on the top leve…
KevinBKozan May 2, 2018
9aa35bf
Merge pull request #120 from magento/MQE-969
tomreece May 2, 2018
b350296
MQE-812: Tests/Action Groups should infer order based on the top leve…
KevinBKozan May 2, 2018
a4249b5
MQE-812: Tests/Action Groups should infer order based on the top leve…
KevinBKozan May 2, 2018
371680d
MQE-985: Empty Suite configuration should not generate
aljcalandra Apr 30, 2018
9adb681
Merge pull request #119 from magento/MQE-985
aljcalandra May 4, 2018
40b85ab
MQE-922: Periods in Allure report execution test body appear as •
KevinBKozan May 4, 2018
131f5c6
MQE-983: Unit Test for Module Resolver
aljcalandra May 4, 2018
2b92b62
MQE-983: Unit Test for Module Resolver
aljcalandra May 4, 2018
091b10e
MQE-980: [Annotations] <features> tag defaults to module
KevinBKozan May 7, 2018
2703d1d
Merge branch 'develop' into MQE-983
aljcalandra May 7, 2018
1038869
Merge pull request #123 from magento/MQE-983
aljcalandra May 7, 2018
ca7f802
MQE-812: Tests/Action Groups should infer order based on the top leve…
KevinBKozan May 8, 2018
c9fbac0
MQE-812: Tests/Action Groups should infer order based on the top leve…
KevinBKozan May 8, 2018
097ebe8
MQE-991: The second data entity replacement is not correct when there…
KevinBKozan May 8, 2018
e386744
Merge branch 'develop' into MQE-980
KevinBKozan May 8, 2018
b04892b
Merge branch 'develop' into MQE-812
KevinBKozan May 8, 2018
ec5d25a
MQE-980: [Annotations] <features> tag defaults to module
KevinBKozan May 8, 2018
3a07785
MQE-980: [Annotations] <features> tag defaults to module
KevinBKozan May 8, 2018
48bbdb6
Merge pull request #125 from magento/MQE-980
imeron2433 May 9, 2018
374e745
Merge branch 'develop' into MQE-812
imeron2433 May 9, 2018
b28252d
MQE-812: Tests/Action Groups should infer order based on the top leve…
aljcalandra May 14, 2018
15d7407
Merge pull request #126 from magento/MQE-812
aljcalandra May 14, 2018
1bedd14
MQE-884: Show warning on generation when leave out .url attribute for…
aljcalandra May 15, 2018
22a1ef1
MQE-992: Allow Tests and Action Groups to use inheritance (#128)
aljcalandra May 17, 2018
621e9c5
MQE-993: ActionGroups that use createData are not generated correctly…
aljcalandra May 17, 2018
8d8d856
MQE-1011: Keyword Comment In User Input For Action Group Substitutes …
imeron2433 May 15, 2018
486a5be
Merge pull request #131 from magento/MQE-1011
imeron2433 May 21, 2018
1af30e0
MQE-987: Decouple MFTF from Magento
imeron2433 May 25, 2018
343009b
Merge pull request #134 from magento/MQE-987
imeron2433 May 30, 2018
57ad442
MQE-943: Inconsistency in *Page.xml files declaration for "module" at…
aljcalandra May 31, 2018
7525790
MQE-1024: Refactor Algorithm For Mftf Build Groups
imeron2433 May 31, 2018
db1ce7b
MQE-999: Replace all explicit print or echo statements with logging
imeron2433 May 23, 2018
c62b9d2
Merge pull request #137 from magento/MQE-999
imeron2433 Jun 1, 2018
ae2fba1
MQE-1024: Refactor Algorithm For Mftf Build Groups
imeron2433 Jun 4, 2018
400d5e5
MQE-1031: Empty files are flagged during generation or dealt with
aljcalandra Jun 4, 2018
aff7f67
MQE-231: Allow data to extend other data (#136)
aljcalandra Jun 5, 2018
3f4add8
MQE-1031: Empty files are flagged during generation or dealt with
aljcalandra Jun 5, 2018
03f0a65
MQE-1031: Empty files are flagged during generation or dealt with
aljcalandra Jun 5, 2018
343246b
MQE-1024: Refactor Algorithm For Mftf Build Groups
imeron2433 Jun 5, 2018
780c597
Merge branch 'develop' into MQE-1024
imeron2433 Jun 6, 2018
596efbe
MQE-1017: Better Error Messaging When Non-Whitespace Characters Are
aljcalandra Jun 6, 2018
c7200d3
MQE-1031: Empty files are flagged during generation or dealt with
aljcalandra Jun 7, 2018
5afa47e
MQE-1017: Better Error Messaging When Non-Whitespace Characters Are
aljcalandra Jun 7, 2018
22965f6
Merge pull request #138 from magento/MQE-1024
aljcalandra Jun 8, 2018
261ea1d
Merge branch 'develop' into MQE-1031
aljcalandra Jun 8, 2018
eac8f86
MQE-1017: Better Error Messaging When Non-Whitespace Characters Are
aljcalandra Jun 8, 2018
2f70705
Merge pull request #139 from magento/MQE-1031
aljcalandra Jun 9, 2018
5dc4c0d
MQE-1027: Allure report requires a unique story/title for proper repo…
KevinBKozan Jun 11, 2018
998e816
Merge branch 'develop' into MQE-1017
aljcalandra Jun 11, 2018
ca4f329
MQE-1021: Empty Action StepKey Attribute Issues
aljcalandra Jun 12, 2018
1099c00
MQE-1021: Empty Action StepKey Attribute Issues
aljcalandra Jun 12, 2018
37de3a1
MQE-1015: Test Generation Error If Suite Has Action Group With 2+ Arg…
KevinBKozan Jun 12, 2018
371f352
MQE-1043: MFTF force flag should ignore the magento base url even whe…
KevinBKozan Jun 13, 2018
5bdd3d2
MQE-1059: When a single test is specified all suites should not generate
imeron2433 Jun 13, 2018
320e5d3
MQE-1017: Better Error Messaging When Non-Whitespace Characters Are
aljcalandra Jun 13, 2018
3ff6d16
MQE-1038: bin/mftf commands which exceed 60 seconds timeout
KevinBKozan Jun 13, 2018
5307abb
MQE-1016: Variable Substitution Does Not Work For Command Attribute I…
KevinBKozan Jun 13, 2018
dc3ecb6
Merge branch 'develop' into MQE-1017
aljcalandra Jun 13, 2018
914ebe1
MQE-1021: Empty Action StepKey Attribute Issues
aljcalandra Jun 13, 2018
3525758
MQE-1021: Empty Action StepKey Attribute Issues
aljcalandra Jun 13, 2018
737b3c5
Merge branch 'develop' into MQE-1059
imeron2433 Jun 14, 2018
c66df37
Merge pull request #148 from magento/MQE-1059
imeron2433 Jun 14, 2018
d06d9fb
Merge branch 'develop' into MQE-1017
aljcalandra Jun 15, 2018
bca1b3a
Merge branch 'develop' into MQE-1021
aljcalandra Jun 15, 2018
98a3a7d
Merge pull request #147 from magento/MQE-1017
aljcalandra Jun 15, 2018
45e82e8
Merge branch 'develop' into MQE-1021
aljcalandra Jun 15, 2018
b2ee898
Merge pull request #149 from magento/MQE-1021
aljcalandra Jun 15, 2018
73beb17
MQE-1006: Handling secure/sensitive data in MFTF test
imeron2433 Jun 18, 2018
cd958a1
Merge pull request #151 from magento/MQE-1006
imeron2433 Jun 18, 2018
6281e31
MQE-917: Eliminate usage of XSD relative paths
KevinBKozan Jun 19, 2018
2f4f8df
MQE-1060: Allow magentoCLI Action To Run Without Manipulating Command
aljcalandra Jun 20, 2018
ddbe942
MQE-1060: Allow magentoCLI Action To Run Without Manipulating Command
aljcalandra Jun 20, 2018
0992289
MQE-1078: Enable regex attribute to resolve data references
aljcalandra Jun 21, 2018
f7cb05e
MQE-1068: Require Issue ID for Skipped Test
aljcalandra Jun 22, 2018
b4bdf77
MQE-1068: Require Issue ID for Skipped Test
aljcalandra Jun 22, 2018
7a4fa48
MQE-1068: Require Issue ID for Skipped Test
aljcalandra Jun 22, 2018
8811985
MQE-1060: Allow magentoCLI Action To Run Without Manipulating Command
aljcalandra Jun 22, 2018
de1583f
MQE-1033: Validate duplicate element names in the same file (Section,…
KevinBKozan Jun 25, 2018
81565d9
Merge branch 'develop' into MQE-1060
aljcalandra Jun 25, 2018
eca4c88
MQE-1068: Require Issue ID for Skipped Test
aljcalandra Jun 25, 2018
9f46f0a
MQE-1074: Verify MFTF Compatibility with Phpunit 7
aljcalandra Jun 25, 2018
95aa636
MQE-1079: declare(strict_types=1) causes static code check failure
KevinBKozan Jun 26, 2018
45a3627
Merge branch 'develop' into MQE-1060
aljcalandra Jun 26, 2018
7cb065f
Merge branch 'develop' into MQE-1078
aljcalandra Jun 26, 2018
9737bd8
MQE-1068: Require Issue ID for Skipped Test
aljcalandra Jun 26, 2018
ffd4cd0
Merge pull request #155 from magento/MQE-1060
aljcalandra Jun 27, 2018
4cf1663
Merge branch 'develop' into MQE-1078
aljcalandra Jun 27, 2018
e7833c7
MQE-1068: Require Issue ID for Skipped Test
aljcalandra Jun 27, 2018
2cfa59a
MQE-1068: Require Issue ID for Skipped Test
aljcalandra Jun 27, 2018
7b54e5a
MQE-1074: Verify MFTF Compatibility with Phpunit 7
aljcalandra Jun 27, 2018
5f92b6a
MQE-1068: Require Issue ID for Skipped Test
aljcalandra Jun 27, 2018
cb5f51b
MQE-1068: Require Issue ID for Skipped Test
aljcalandra Jun 27, 2018
e7ab0b6
MQE-1068: Require Issue ID for Skipped Test
aljcalandra Jun 27, 2018
7003122
MQE-1073: Mandatory Annotations
KevinBKozan Jun 28, 2018
7c7be3a
Merge branch 'develop' into MQE-1078
aljcalandra Jun 28, 2018
712ab3e
Merge pull request #156 from magento/MQE-1078
aljcalandra Jun 28, 2018
fa2dd3f
MQE-1070: Hide Sensitive Creds in Allure Report
imeron2433 Jun 20, 2018
32a4c56
MQE-1070: Hide Sensitive Creds in Allure Report
imeron2433 Jun 28, 2018
4c5a133
Merge pull request #158 from magento/MQE-1070
imeron2433 Jun 28, 2018
95062cf
MQE-1096: Standardize MFTF Deprecation Warnings
KevinBKozan Jun 29, 2018
ed8018e
MQE-1074: Verify MFTF Compatibility with Phpunit 7
aljcalandra Jul 2, 2018
02e8de5
Merge branch 'develop' into MQE-1074
aljcalandra Jul 2, 2018
f84b785
MQE-1074: Verify MFTF Compatibility with Phpunit 7
aljcalandra Jul 2, 2018
dd9f789
MQE-1083: Acceptance tester should be able to enter future/current da…
KevinBKozan Jul 2, 2018
acb220a
MQE-1074: Verify MFTF Compatibility with Phpunit 7
aljcalandra Jul 2, 2018
299b62e
MQE-1074: Verify MFTF Compatibility with Phpunit 7
aljcalandra Jul 2, 2018
80f794c
MQE-1074: Verify MFTF Compatibility with Phpunit 7
aljcalandra Jul 2, 2018
5c2d01a
MAGETWO-46837: Implementing extension to wait for readiness metrics t…
pdohogne-magento Jul 3, 2018
8353881
MQE-1068: Require Issue ID for Skipped Test
aljcalandra Jul 3, 2018
e829687
MQE-1089: Allow usage of $ JavaScript variables in executeJs
KevinBKozan Jul 5, 2018
ff72629
Merge branch 'develop' into MQE-1074
aljcalandra Jul 5, 2018
00f473b
Merge pull request #164 from magento/MQE-1074
aljcalandra Jul 5, 2018
62b6540
MQE-1087: Test _after hook does not run if test fails with exception
KevinBKozan Jul 6, 2018
fadb951
Merge remote-tracking branch 'mainline/develop' into MAGETWO-46837-re…
pdohogne-magento Jul 9, 2018
8d7cfe8
MAGETWO-46837: Fixing static test failures in readiness extension
pdohogne-magento Jul 9, 2018
bf22ecb
MQE-1037: Passing Multiple Element References In Selector Parameters …
KevinBKozan Jul 9, 2018
64dd3b3
Merge branch 'develop' into MQE-1068
aljcalandra Jul 9, 2018
cb17300
MQE-1068: Require Issue ID for Skipped Test
aljcalandra Jul 10, 2018
9bafd56
Merge pull request #167 from magento/MQE-1068
aljcalandra Jul 10, 2018
e68c41d
MQE-1047: magentoCLI command does not work if MAGENTO_BASE_URL uses i…
KevinBKozan Jul 11, 2018
890b392
MQE-1110: MFTF run:group does not work with a standalone configuration
KevinBKozan Jul 12, 2018
ff467df
MAGETWO-46837: Extracting metric tracking from test object and adding…
pdohogne-magento Jul 12, 2018
45d802b
MQE-1141: UpdateTestSchemaPaths broken due to updated relative paths
KevinBKozan Jul 16, 2018
b462aa8
Merge branch 'develop' into MAGETWO-46837-readiness-flag-develop
KevinBKozan Jul 16, 2018
5733a1b
Merge pull request #161 from magento-borg/MAGETWO-46837-readiness-fla…
KevinBKozan Jul 16, 2018
012f56f
MQE-917: Eliminate usage of XSD relative paths
KevinBKozan Jul 17, 2018
ae109cd
Turning off all logging for Readiness Extension
KevinBKozan Jul 18, 2018
b8ebe86
[2.3.0 - Release] Changelog
KevinBKozan Jul 18, 2018
468502d
Merge branch 'develop' into TurnOffReadinessLogging
KevinBKozan Jul 18, 2018
d5348a0
MQE-1147: Turning off all logging for Readiness Extension
KevinBKozan Jul 18, 2018
106aaba
Merge pull request #173 from magento/TurnOffReadinessLogging
okolesnyk Jul 18, 2018
d407649
MQE-1147: make mftf.log visible on server
KevinBKozan Jul 19, 2018
e95107f
MQE-1114: Merge the release branch to master
KevinBKozan Jul 19, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ coverage/
.vscode
codeception.yml
dev/tests/functional/MFTF.suite.yml
dev/tests/functional/_output
dev/tests/functional/_output
dev/mftf.log
dev/tests/mftf.log
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,59 @@
Magento Functional Testing Framework Changelog
================================================

2.3.0
-----
### Enhancements
* Traceability
* MFTF now outputs generation run-time information, warnings, and errors to an `mftf.log` file.
* Overall error messages for various generation errors have been improved. Usage of the `--debug` flag provides file-specific errors for all XML-related errors.
* Allure Reports now require a unique `story` and `title` combination, to prevent collisions in Allure Report generation.
* The `features` annotation now ignores user input and defaults to the module the test lives under (for clear Allure organization).
* The `<group value="skip"/>` annotation has been replaced with a `<skip>` annotation, allowing for nested `IssueId` elements.
* Tests now require the following annotations: `stories`, `title`, `description`, `severity`.
* This will be enforced in a future major release.
* Modularity
* MFTF has been decoupled from MagentoCE:
* MFTF can now generate and run tests by itself via `bin/mftf` commands.
* It is now a top level MagentoCE dependency, and no longer relies on supporting files in MagentoCE.
* It can be used as an isolated dependency for Magento projects such as extensions.
* `generate:tests` now warns the user if any declared `<page>` has an inconsistent `module` (`Backend` vs `Magento_Backend`)
* The `--force` flag now completely ignores checking of the Magento Installation, allowing generation of tests without a Magento Instance to be running.
* Customizability
* Various test materials can now be extended via an `extends="ExistingMaterial"` attribute. This allows for creation of simple copies of any `entity`, `actionGroup`, or `test`, with small modifications.
* `test` and `actionGroup` deltas can now be provided in bulk via a `before/after` attribute on the `test` or `actionGroup` element. Deltas provided this way do not need individual `before/after` attributes, and are inserted sequentially.
* Secure and sensitive test data can now be stored and used via a new `.credentials` file, with declaration and usage syntax similar to `.env` file references.
* A new `<generateDate>` action has been added to allow users to create and use dates according to the given `date` and `format`.
* See DevDocs for more information on all above `Customizability` features.
* Maintainability
* New `bin/mftf` commands have been introduced with parity to existing `robo` commands.
* `robo` commands are still supported, but will be deprecated in a future major release.
* The `mftf upgrade:tests` command has been introduced, which runs all test upgrade scripts against the provided path.
* A new upgrade script was created to replace all test material schema paths to instead use a URN path.
* The `mftf generate:urn-catalog` command has been introduced to create a URN catalog in PHPStorm to support the above upgrade.
* A warning is now shown on generation if a page's url is referenced without specifying the url (`{{page}}` vs `{{page.url}}`).
* An error is now thrown if any test materials contain any overriding element (eg different `<element>`s in a `<section>` with the same `name`)
* This previously would cause the last read element to override the previous, causing a silent but potentially incorrect test addition.
* Test distribution algorithm for `--config parallel` has been enhanced to take average step length into account.

### Fixes
* `_after` hook of tests now executes if a non test-related failure causes the test to error.
* Fixed periods in Allure Report showing up as `•`.
* Fixed Windows incompatibility of relative paths in various files.
* Suites will no longer generate if they do not contain any tests.
* Fixed an issue in generation where users could not use javascript variables in `executeJS` actions.
* Fixed an issue in generation where entity replacement in action-groups replaced all entities with the first reference found.
* Fixed an issue in generation where `createData` actions inside `actionGroups` could not properly reference the given `createDataKey`.
* Fixed an issue where `suites` could not generate if they included an `actionGroup` with two arguments.
* Fixed an issue in generation where calling the same entity twice (with different parameters) would replace both calls with the first resolved value.
* The `magentoCLI` action now correctly executes the given command if the `MAGENTO_BASE_URL` contains `index.php` after the domain (ex `https://magento.instance/index.php`)
* The `stepKey` attribute can no longer be an empty.
* Variable substitution has been enabled for `regex` and `command` attributes in test actions.

### GitHub Issues/Pull requests:
* [#161](https://github.com/magento/magento2-functional-testing-framework/pull/161) -- MAGETWO-46837: Implementing extension to wait for readiness metrics.
* [#72](https://github.com/magento/magento2-functional-testing-framework/issues/72) -- declare(strict_types=1) causes static code check failure (fixed in [#154](https://github.com/magento/magento2-functional-testing-framework/pull/154))

2.2.0
-----
### Enhancements
Expand Down
214 changes: 0 additions & 214 deletions RoboFile.php

This file was deleted.

8 changes: 8 additions & 0 deletions bin/all-checks.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
:: Copyright © Magento, Inc. All rights reserved.
:: See COPYING.txt for license details.

@echo off
call bin\static-checks.bat

@echo off
call bin\phpunit-checks.bat
5 changes: 2 additions & 3 deletions bin/blacklist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# THIS FILE CANNOT CONTAIN BLANK LINES #
###################################################################
bin/blacklist.txt
dev/tests/static/Magento/Sniffs/Annotations/Helper.php
dev/tests/static/Magento/Sniffs/Annotations/RequireAnnotatedAttributesSniff.php
dev/tests/static/Magento/Sniffs/Annotations/RequireAnnotatedMethodsSniff.php
dev/tests/static/Magento/Sniffs/Commenting/FunctionCommentSniff.php
dev/tests/static/Magento/Sniffs/Commenting/VariableCommentSniff.php
dev/tests/verification/_generated
41 changes: 41 additions & 0 deletions bin/copyright-check.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
:: Copyright © Magento, Inc. All rights reserved.
:: See COPYING.txt for license details.

@echo off
SETLOCAL EnableDelayedExpansion
SET BLACKLIST_FILE=bin/blacklist.txt
SET i=0

FOR /F %%x IN ('git ls-tree --full-tree -r --name-only HEAD') DO (
SET GOOD_EXT=
if "%%~xx"==".php" set GOOD_EXT=1
if "%%~xx"==".xml" set GOOD_EXT=1
if "%%~xx"==".xsd" set GOOD_EXT=1
IF DEFINED GOOD_EXT (
SET BLACKLISTED=
FOR /F "tokens=* skip=5" %%f IN (%BLACKLIST_FILE%) DO (
SET LINE=%%x
IF NOT "!LINE!"=="!LINE:%%f=!" (
SET BLACKLISTED=1
)
)
IF NOT DEFINED BLACKLISTED (
FIND "Copyright © Magento, Inc. All rights reserved." %%x >nul
IF ERRORLEVEL 1 (
SET /A i+=1
SET NO_COPYRIGHT_LIST[!i!]=%%x
)
)
)
)

IF DEFINED NO_COPYRIGHT_LIST[1] (
ECHO THE FOLLOWING FILES ARE MISSING THE MAGENTO COPYRIGHT:
ECHO.
ECHO Copyright © Magento, Inc. All rights reserved.
ECHO See COPYING.txt for license details.
ECHO.
FOR /L %%a IN (1,1,%i%) DO (
ECHO !NO_COPYRIGHT_LIST[%%a]!
)
)
25 changes: 21 additions & 4 deletions bin/mftf
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,30 @@ if (PHP_SAPI !== 'cli') {
exit(1);
}

$autoloadPath = realpath(__DIR__ . '/../../../autoload.php');
$testBootstrapPath = realpath(__DIR__ . '/../dev/tests/functional/_bootstrap.php');

try {
if (file_exists($autoloadPath)) {
require_once $autoloadPath;
} else {
require_once $testBootstrapPath;
}
} catch (\Exception $e) {
echo 'Autoload error: ' . $e->getMessage();
exit(1);
}


try {
require_once __DIR__ . '/../bootstrap.php';
$application = new Symfony\Component\Console\Application();
$application->setName('Magento Functional Testing Framework CLI');
$application->setVersion('1.0.0');
$application->add(new Magento\FunctionalTestingFramework\Console\SetupEnvCommand());
$application->add(new Magento\FunctionalTestingFramework\Console\BuildProjectCommand());
$application->setVersion('2.3.0');
/** @var \Magento\FunctionalTestingFramework\Console\CommandListInterface $commandList */
$commandList = new \Magento\FunctionalTestingFramework\Console\CommandList;
foreach ($commandList->getCommands() as $command) {
$application->add($command);
}
$application->run();
} catch (\Exception $e) {
while ($e) {
Expand Down
Loading