|
23 | 23 | "require": { |
24 | 24 | "php": "^8", |
25 | 25 | "ext-json": "*", |
26 | | - "codeception/codeception": "^5", |
27 | | - "allure-framework/allure-php-commons": "^2" |
| 26 | + "codeception/codeception": "^5.0.3", |
| 27 | + "allure-framework/allure-php-commons": "^2.3.1" |
28 | 28 | }, |
29 | 29 | "require-dev": { |
30 | | - "phpunit/phpunit": "^9.5", |
31 | 30 | "psalm/plugin-phpunit": "^0.18.4", |
32 | 31 | "remorhaz/php-json-data": "^0.5.3", |
33 | 32 | "remorhaz/php-json-path": "^0.7.7", |
|
41 | 40 | }, |
42 | 41 | "autoload-dev": { |
43 | 42 | "psr-4": { |
44 | | - "Qameta\\Allure\\Codeception\\Test\\Functional\\": "test/codeception/functional/", |
45 | | - "Qameta\\Allure\\Codeception\\Test\\Acceptance\\": "test/codeception/acceptance/", |
46 | | - "Qameta\\Allure\\Codeception\\Test\\Unit\\": "test/codeception/unit/", |
47 | | - "Qameta\\Allure\\Codeception\\Test\\": [ |
48 | | - "test/codeception/_support/", |
49 | | - "test/report/" |
50 | | - ] |
| 43 | + "Qameta\\Allure\\Codeception\\Test\\": "test/codeception/_support/", |
| 44 | + "Qameta\\Allure\\Codeception\\Test\\Unit\\": [ |
| 45 | + "test/codeception/report-check/", |
| 46 | + "test/codeception/unit/" |
| 47 | + ], |
| 48 | + "Qameta\\Allure\\Codeception\\Test\\Report\\": "test/codeception-report/_support/", |
| 49 | + "Qameta\\Allure\\Codeception\\Test\\Report\\Functional\\": "test/codeception-report/functional/", |
| 50 | + "Qameta\\Allure\\Codeception\\Test\\Report\\Acceptance\\": "test/codeception-report/acceptance/", |
| 51 | + "Qameta\\Allure\\Codeception\\Test\\Report\\Unit\\": "test/codeception-report/unit/" |
51 | 52 | } |
52 | 53 | }, |
53 | 54 | "scripts": { |
54 | 55 | "build": [ |
55 | 56 | "vendor/bin/codecept build", |
56 | | - "vendor/bin/codecept gherkin:snippets acceptance" |
| 57 | + "vendor/bin/codecept build -c codeception-report.yml", |
| 58 | + "vendor/bin/codecept gherkin:snippets acceptance -c codeception-report.yml" |
57 | 59 | ], |
58 | 60 | "test-cs": "vendor/bin/phpcs -sp", |
| 61 | + "test-unit": "vendor/bin/codecept run unit --coverage-text", |
59 | 62 | "test-report-generate": [ |
60 | | - "rm -rf ./build/log/", |
61 | | - "vendor/bin/codecept run --no-exit --report" |
| 63 | + "rm -rf ./build/allure-results/", |
| 64 | + "vendor/bin/codecept run -c codeception-report.yml --no-exit --report" |
62 | 65 | ], |
63 | | - "test-report-check": "vendor/bin/phpunit --testsuite=report", |
| 66 | + "test-report-check": "vendor/bin/codecept run report-check", |
64 | 67 | "test-psalm": "vendor/bin/psalm --shepherd", |
65 | 68 | "test": [ |
66 | 69 | "@test-cs", |
| 70 | + "@test-unit", |
67 | 71 | "@test-report-generate", |
68 | 72 | "@test-report-check", |
69 | 73 | "@test-psalm" |
|
0 commit comments