-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomposer.json
112 lines (112 loc) · 4.05 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"name": "kununu/testing-bundle",
"description": "Testing made easy by providing helper classes and fixtures loading",
"type": "symfony-bundle",
"license": "MIT",
"minimum-stability": "stable",
"keywords": [
"tests",
"symfony",
"fixtures"
],
"authors": [
{
"name": "Hugo Gonçalves",
"email": "hugo.goncalves@kununu.com"
},
{
"name": "João Alves",
"email": "joao.alves@kununu.com"
}
],
"require": {
"php": ">=8.3",
"symfony/framework-bundle": "^6.4",
"kununu/data-fixtures": "^13.0",
"symfony/config": "^6.4",
"symfony/dependency-injection": "^6.4",
"symfony/http-kernel": "^6.4"
},
"require-dev": {
"ext-json": "*",
"ext-pdo": "*",
"doctrine/dbal": "^3.8",
"doctrine/doctrine-bundle": "^2.7",
"doctrine/doctrine-migrations-bundle": "^3.3",
"doctrine/orm": "^3.0",
"elasticsearch/elasticsearch": "^7.10",
"kununu/scripts": ">=5.1",
"matthiasnoback/symfony-dependency-injection-test": "^6.0",
"opensearch-project/opensearch-php": "^2.0",
"phpstan/phpstan": "^2.1",
"phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^11.5",
"rector/rector": "^2.0",
"psr/cache": "^2.0",
"symfony/browser-kit": "^6.4",
"symfony/dotenv": "^6.4",
"symfony/http-client": "^6.4",
"symfony/http-foundation": "^6.4"
},
"suggest": {
"ext-pdo_mysql": "To run Integration Tests.",
"doctrine/doctrine-bundle": "To run Integration Tests.",
"opensearch-project/opensearch-php": "To run Integration Tests.",
"elasticsearch/elasticsearch": "To run Integration Tests.",
"psr/cache": "To run Integration Tests.",
"symfony/http-client": "To run Integration Tests.",
"symfony/http-foundation": "To run Integration Tests."
},
"autoload": {
"psr-4": {
"Kununu\\TestingBundle\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Kununu\\TestingBundle\\Tests\\": "tests/"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
"kununu/scripts": true
}
},
"scripts": {
"unit": "phpunit --log-events-text phpunit.log --no-coverage --no-logging --no-progress --testsuite Unit",
"unit-coverage": "XDEBUG_MODE=coverage phpunit --log-events-text phpunit.log --no-progress --testsuite Unit --log-junit tests/.results/unit-junit.xml --coverage-clover tests/.results/coverage-unit.xml --coverage-html tests/.results/Unit",
"integration": [
"rm -rf tests/App/var/*",
"tests/App/bin/setup_databases.sh test",
"phpunit --log-events-text phpunit.log --no-coverage --no-logging --no-progress --testsuite Integration"
],
"integration-coverage": [
"rm -rf tests/App/var/*",
"tests/App/bin/setup_databases.sh test",
"XDEBUG_MODE=coverage phpunit --log-events-text phpunit.log --no-progress --testsuite Integration --log-junit tests/.results/integration-junit.xml --coverage-clover tests/.results/coverage-integration.xml --coverage-html tests/.results/Integration"
],
"test": [
"rm -rf tests/App/var/*",
"tests/App/bin/setup_databases.sh test",
"phpunit --log-events-text phpunit.log --no-coverage --no-logging --no-progress --testsuite Unit,Integration"
],
"test-coverage": [
"rm -rf tests/App/var/*",
"tests/App/bin/setup_databases.sh test",
"XDEBUG_MODE=coverage phpunit --log-events-text phpunit.log --no-progress --testsuite Unit,Integration --log-junit tests/.results/tests-junit.xml --coverage-clover tests/.results/tests-clover.xml --coverage-html tests/.results/html"
],
"phpstan": "phpstan",
"rector": "rector process --dry-run --config rector-ci.php src/ tests/"
},
"scripts-descriptions": {
"unit": "Run all unit tests",
"unit-coverage": "Run all unit tests with coverage report",
"integration": "Run all integration tests",
"integration-coverage": "Run all integration tests with coverage report",
"test": "Run all tests",
"test-coverage": "Run all tests with coverage report",
"rector": "Run Rector in dry-run mode with CI rules",
"phpstan": "Run PHPStan"
}
}