File tree Expand file tree Collapse file tree 5 files changed +26
-20
lines changed Expand file tree Collapse file tree 5 files changed +26
-20
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ tests export-ignore
5
5
.gitattributes export-ignore
6
6
.gitignore export-ignore
7
7
.travis.yml export-ignore
8
- codeception.yml export-ignore
9
8
Makefile export-ignore
10
9
phpstan.neon export-ignore
11
10
README.md export-ignore
Original file line number Diff line number Diff line change 7
7
8
8
# Tests
9
9
/temp
10
+ /coverage.html
10
11
/coverage.xml
Original file line number Diff line number Diff line change 1
- .PHONY : install qa cs csf phpstan tests coverage-clover coverage-html
1
+ .PHONY : install qa cs csf phpstan tests coverage
2
2
3
3
install :
4
4
composer update
@@ -7,7 +7,7 @@ qa: phpstan cs
7
7
8
8
cs :
9
9
ifdef GITHUB_ACTION
10
- vendor/bin/codesniffer -q --report=checkstyle src tests | cs2pr
10
+ vendor/bin/codesniffer -q --report=checkstyle src tests | cs2pr
11
11
else
12
12
vendor/bin/codesniffer src tests
13
13
endif
16
16
vendor/bin/codefixer src tests
17
17
18
18
phpstan :
19
- vendor/bin/phpstan analyse -l 8 - c phpstan.neon src
19
+ vendor/bin/phpstan analyse -c phpstan.neon
20
20
21
21
tests :
22
22
vendor/bin/codecept build
23
23
vendor/bin/codecept run --debug
24
24
25
- coverage-clover :
25
+ coverage :
26
+ ifdef GITHUB_ACTION
26
27
vendor/bin/codecept build
27
28
phpdbg -qrr vendor/bin/codecept run --coverage-xml
28
-
29
- coverage-html :
29
+ else
30
30
vendor/bin/codecept build
31
31
phpdbg -qrr vendor/bin/codecept run --coverage-html
32
+ endif
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ includes:
6
6
- extension.neon
7
7
8
8
parameters :
9
+ level : 9
10
+ paths :
11
+ - src
12
+
9
13
excludePaths :
10
14
- %currentWorkingDirectory%/tests/_*
11
15
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<ruleset name =" Contributte" >
3
3
<!-- Contributte Coding Standard -->
4
- <rule ref =" vendor/ninjify/coding-standard/contributte.xml" >
4
+ <rule ref =" vendor/ninjify/coding-standard/contributte.xml" >
5
5
<exclude name =" SlevomatCodingStandard.Classes.UnusedPrivateElements.WriteOnlyProperty" />
6
- </rule >
6
+ </rule >
7
7
8
8
<!-- Specific rules -->
9
- <rule ref =" SlevomatCodingStandard.Files.TypeNameMatchesFileName" >
10
- <properties >
11
- <property name =" rootNamespaces" type =" array" value ="
12
- src=>Contributte\Codeception
13
- " />
14
- </properties >
15
- </rule >
9
+ <rule ref =" SlevomatCodingStandard.Files.TypeNameMatchesFileName" >
10
+ <properties >
11
+ <property name =" rootNamespaces" type =" array" >
12
+ <element key =" src" value =" Contributte\Codeception" />
13
+ <element key =" tests" value =" Tests" />
14
+ </property >
15
+ </properties >
16
+ </rule >
16
17
17
- <rule ref =" SlevomatCodingStandard.Files.TypeNameMatchesFileName.NoMatchBetweenTypeNameAndFileName" >
18
- <exclude-pattern >/tests/functional</exclude-pattern >
19
- </rule >
18
+ <rule ref =" SlevomatCodingStandard.Files.TypeNameMatchesFileName.NoMatchBetweenTypeNameAndFileName" >
19
+ <exclude-pattern >/tests/functional</exclude-pattern >
20
+ </rule >
20
21
21
- <!-- Exclude folders -->
22
+ <!-- Exclude folders -->
22
23
<exclude-pattern >/tests/_output</exclude-pattern >
23
24
<exclude-pattern >/tests/_support</exclude-pattern >
24
25
<exclude-pattern >/tests/_temp</exclude-pattern >
You can’t perform that action at this time.
0 commit comments