File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,8 @@ The following configuration options are available:
60
60
+ ` group ` Only runs tests from the specified group(s)
61
61
+ ` exclude_group ` Exclude tests from the specified group(s)
62
62
+ ` test_suffix ` Only search for test in files with specified suffix(es)
63
- + ` whitelist ` Path to directory to whitelist for code coverage analysis
63
+ + ` whitelist ` Path to directory to whitelist for code coverage analysis (phpunit <= 8)
64
+ + ` coverage_filter ` Include directory in code coverage reporting (phpunit >= 9)
64
65
+ ` coverage_clover ` Generate code coverage report in Clover XML format
65
66
+ ` coverage_cobertura ` Generate code coverage report in Cobertura XML format
66
67
required
Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ inputs:
73
73
description : Path to directory to whitelist for code coverage analysis
74
74
required : false
75
75
76
+ coverage_filter :
77
+ description : Include directory in code coverage reporting
78
+ required : false
79
+
76
80
coverage_clover :
77
81
description : Generate code coverage report in Clover XML format
78
82
required : false
@@ -126,6 +130,7 @@ runs:
126
130
ACTION_TEST_SUFFIX : ${{ inputs.test_suffix }}
127
131
ACTION_WHITELIST : ${{ inputs.whitelist }}
128
132
ACTION_MEMORY_LIMIT : ${{ inputs.memory_limit }}
133
+ ACTION_COVERAGE_FILTER : ${{ inputs.coverage_filter }}
129
134
ACTION_COVERAGE_CLOVER : ${{ inputs.coverage_clover }}
130
135
ACTION_COVERAGE_COBERTURA : ${{ inputs.coverage_cobertura }}
131
136
ACTION_COVERAGE_CRAP4J : ${{ inputs.coverage_crap4j }}
Original file line number Diff line number Diff line change 86
86
command_string+=(-d memory_limit=" $ACTION_MEMORY_LIMIT " )
87
87
fi
88
88
89
+ if [ -n " $ACTION_COVERAGE_FILTER " ]
90
+ then
91
+ command_string+=(--coverage-filter " $ACTION_COVERAGE_FILTER " )
92
+ export XDEBUG_MODE=coverage
93
+ fi
94
+
89
95
if [ -n " $ACTION_COVERAGE_CLOVER " ]
90
96
then
91
97
command_string+=(--coverage-clover " $ACTION_COVERAGE_CLOVER " )
You can’t perform that action at this time.
0 commit comments