Skip to content

Commit 02e5103

Browse files
committed
Proper Composer Definition for Running MTFT Tests
- Added autoload-dev section for being able to execute tests via composer script - Added composer script for static code analysis - Added composer script for tests - Changed Travis pipeline to run composer scripts - Changed Codeception dependency to point to the most recent patch release - Updated composer.lock to reflect dependencies installed in PHP7.0, not via PHP7.1
1 parent 858bf21 commit 02e5103

File tree

3 files changed

+433
-181
lines changed

3 files changed

+433
-181
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ php:
44
- 7.1
55
install: composer install --no-interaction --prefer-source
66
script:
7-
- vendor/bin/phpcs ./src --standard=./dev/tests/static/Magento
7+
- composer code-style
8+
- composer tests

composer.json

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"keywords": ["magento", "automation", "functional", "testing"],
66
"require": {
77
"php": "~7.0",
8-
"codeception/codeception": "2.2|2.3",
8+
"codeception/codeception": "^2.2|^2.3",
99
"flow/jsonpath": ">0.2",
1010
"fzaninotto/faker": "^1.6",
1111
"mustache/mustache": "~2.5"
@@ -20,6 +20,15 @@
2020
"Magento\\FunctionalTestingFramework\\": ["src/Magento/FunctionalTestingFramework"]
2121
}
2222
},
23+
"autoload-dev": {
24+
"psr-4": {
25+
"tests\\unit\\": ["dev/tests/unit"]
26+
}
27+
},
28+
"scripts": {
29+
"tests": "vendor/bin/phpunit -c dev/tests/phpunit.xml",
30+
"code-style": "vendor/bin/phpcs ./src --standard=./dev/tests/static/Magento"
31+
},
2332
"extra": {
2433
"hooks": {
2534
"pre-push": "bin/copyright-check"

0 commit comments

Comments
 (0)