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
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/contributor-guide/pull-request-tests.md
+20-41Lines changed: 20 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,27 +21,34 @@ Semantic Version Checker is a test that compares the changed code against the ma
21
21
Please see the [Backward Compatibility Development Guide](https://devdocs.magento.com/guides/v2.3/contributor-guide/backward-compatible-development/index.html) for more information
22
22
23
23
### Functional Tests
24
+
24
25
Functional Tests are PHPUnit-based tests that check Magento functional behavior from the perspective of a user. They press buttons and links in browser, fill and submit forms, look and check what is displayed in the browser's window like real users.
25
26
26
27
### Sample Data Tests
28
+
27
29
Sample Data Tests are functional tests that run on Magento with Sample Data included.
28
30
29
31
### Unit Tests
32
+
30
33
Unit tests are PHPUnit-based (for PHP) and Jasmine-based (for JS) tests which check the behavior of single methods of Magento classes. The purpose is to validate that each unit of Magento performs as designed.
31
34
32
35
### Integration Tests
36
+
33
37
Integration Tests are PHPUnit-based tests that check the behaviour of group of Magento components. They include three types of tests:
34
-
* Standard Integration tests which check Magento behavior on installed instance.
35
-
* Setup Integration tests which check Magento behavior during the installation process.
36
-
* Integration Integrity tests which check the consistency of installed Magento instance (configuration files, DB schemes etc.)
38
+
39
+
- Standard Integration tests which check Magento behavior on installed instance.
40
+
- Setup Integration tests which check Magento behavior during the installation process.
41
+
- Integration Integrity tests which check the consistency of installed Magento instance (configuration files, DB schemes etc.)
37
42
38
43
### WebAPI Tests
39
44
WebAPI Tests are functional tests that check the behavior of Magento Web API endpoints. They send requests to endpoints of installed Magento instance and and then check the response received and the state of the instance. Currently they include three kinds of tests:
45
+
40
46
- SOAP Web API tests
41
47
- REST Web API tests
42
48
- GraphQL WEB API tests
43
49
44
50
### Static Tests
51
+
45
52
Static Tests are set of different checks that analyze each single file of Magento code base separately. Most of them analyze the whole Magento code base whereas some run only against the change set.
46
53
47
54
### Database Compare
@@ -51,49 +58,21 @@ Database Compare is a test which compares DB schema and data between freshly ins
51
58
### Magento Component Health Index
52
59
53
60
Magento Component Health Index is a test which analyses Magento code quality and calculates weighted health index (100 is great, lower is worse) per Magento Component (module). The index is calculated based on 3 groups of indicators:
54
-
- General code quality indicators (GCQI). The metrics described [here](http://pdepend.org/documentation/software-metrics/index.html):
0 commit comments