|
| 1 | +.PHONY: mu |
1 | 2 | mu: vendor ## Mutation tests
|
2 | 3 | vendor/bin/infection -s --threads=$(nproc) --min-msi=23 --min-covered-msi=45
|
3 | 4 | vendor/bin/phpunit --coverage-text
|
4 | 5 |
|
| 6 | +.PHONY: tests |
5 | 7 | tests: vendor ## Run all tests
|
6 | 8 | vendor/bin/phpunit --color
|
7 | 9 |
|
| 10 | +.PHONY: cc |
8 | 11 | cc: vendor ## Show test coverage rates (HTML)
|
9 | 12 | vendor/bin/phpunit --coverage-html ./build
|
10 | 13 |
|
| 14 | +.PHONY: cs |
11 | 15 | cs: vendor ## Fix all files using defined ECS rules
|
12 | 16 | vendor/bin/ecs check --fix
|
13 | 17 |
|
| 18 | +.PHONY: tu |
14 | 19 | tu: vendor ## Run only unit tests
|
15 | 20 | vendor/bin/phpunit --color --group Unit
|
16 | 21 |
|
| 22 | +.PHONY: ti |
17 | 23 | ti: vendor ## Run only integration tests
|
18 | 24 | vendor/bin/phpunit --color --group Integration
|
19 | 25 |
|
| 26 | +.PHONY: tf |
20 | 27 | tf: vendor ## Run only functional tests
|
21 | 28 | vendor/bin/phpunit --color --group Functional
|
22 | 29 |
|
| 30 | +.PHONY: st |
23 | 31 | st: vendor ## Run static analyse
|
24 | 32 | vendor/bin/phpstan analyse
|
25 | 33 |
|
26 | 34 |
|
27 | 35 | ################################################
|
28 | 36 |
|
| 37 | +.PHONY: ci-mu |
29 | 38 | ci-mu: vendor ## Mutation tests (for CI/CD only)
|
30 | 39 | vendor/bin/infection --logger-github -s --threads=$(nproc) --min-msi=23 --min-covered-msi=45
|
31 | 40 |
|
| 41 | +.PHONY: ci-cc |
32 | 42 | ci-cc: vendor ## Show test coverage rates (for CI/CD only)
|
33 | 43 | vendor/bin/phpunit --coverage-text
|
34 | 44 |
|
| 45 | +.PHONY: ci-cs |
35 | 46 | ci-cs: vendor ## Check all files using defined ECS rules (for CI/CD only)
|
36 | 47 | vendor/bin/ecs check
|
37 | 48 |
|
38 | 49 | ################################################
|
39 | 50 |
|
40 | 51 |
|
| 52 | +.PHONY: rector |
41 | 53 | rector: vendor ## Check all files using Rector
|
42 | 54 | vendor/bin/rector process --ansi --dry-run --xdebug
|
43 | 55 |
|
|
0 commit comments