You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/git-vs-composer-install.md
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@
5
5
6
6
If you are planning on contributing a PR to the Magento 2 codebase, you can download Magento 2 from GitHub. Contribution to the codebase is done using the 'fork and pull' model where contributors maintain their own fork of the repo. This repo is then used to submit a pull request to the base repo.
@@ -16,6 +17,13 @@ All Magento modules and their MFTF tests are put under `<vendor>` directory for
16
17
Install guide: [Composer based Installation](https://devdocs.magento.com/guides/v2.3/install-gde/composer.html)
17
18
18
19
20
+
### MFTF Installation
21
+
22
+
After installing your Magento project in either of the above ways, the composer dependency `magento/magento2-functional-testing-framework` allows you to download and install MFTF. MFTF will be embedded in your Magento 2 installation and will cover your project with functional tests.
23
+
24
+
If you want to contribute a PR into MFTF codebase, you will need to install MFTF in the [Standalone] mode.
25
+
26
+
19
27
###Managing modules - Composer vs GitHub
20
28
21
29
####Via GitHub:
@@ -55,18 +63,22 @@ The file structure under both paths is the same as below:
55
63
└── ...
56
64
```
57
65
66
+
58
67
###How ModuleResolver reads modules
59
68
60
69
In either of the installations, all tests and test data are read and merged by MFTF's ModuleResolver in the order indicated below:
There are no differences from MFTF's perspective between having the test artifacts in `app/code` or in `/vendor` as it reads artifacts from both paths. It works the same. Composer based install may benefit teams when there's a need to match file systems in dev and production.
68
78
69
79
If you are a contributing developer with an understanding of Git and Composer commands, you can choose the GitHub installation method instead.
0 commit comments