-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code-coverage OP#40949 #37
Conversation
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
Signed-off-by: Artur Neumann <artur@jankaritech.com>
a3b0eed
to
85eedaa
Compare
Signed-off-by: Artur Neumann <artur@jankaritech.com>
9f8a1bf
to
f5caece
Compare
f5caece
to
8f1cc21
Compare
Signed-off-by: Artur Neumann <artur@jankaritech.com>
8f1cc21
to
416af1a
Compare
Signed-off-by: Artur Neumann <artur@jankaritech.com>
416af1a
to
97d8e28
Compare
PHP Code CoverageCoverage after merging coverage into master will be
Coverage Report
|
@@ -6,9 +6,15 @@ | |||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> | |||
<coverage> | |||
<report> | |||
<text outputFile="php://stdout" showUncoveredFiles="true"/> | |||
<cobertura outputFile="coverage/php/cobertura.xml"/> | |||
<html outputDirectory="coverage/php/" lowUpperBound="50" highLowerBound="90"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for human readable inspection offline
<text outputFile="php://stdout" showUncoveredFiles="true"/> | ||
<cobertura outputFile="coverage/php/cobertura.xml"/> | ||
<html outputDirectory="coverage/php/" lowUpperBound="50" highLowerBound="90"/> | ||
<text outputFile="php://stdout" showUncoveredFiles="false" showOnlySummary="true"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
direct text output after running the tests
collectCoverage: true, | ||
collectCoverageFrom: ['./src/**'], | ||
coverageDirectory: '<rootDir>/coverage/jest/', | ||
coverageReporters: ['lcov', 'html', 'text'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lcov for automatic reports, html for human readable analysis offline, text for instant output after test run
if: ${{ github.event_name == 'pull_request' }} | ||
uses: VeryGoodOpenSource/very_good_coverage@v1.2.0 | ||
with: | ||
min_coverage: '24' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
roughly current coverage rate
if: ${{ github.event_name == 'pull_request' }} | ||
uses: VeryGoodOpenSource/very_good_coverage@v1.2.0 | ||
with: | ||
min_coverage: '36' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
roughly current coverage rate
run coverage analysis after test runs, report it in github comment and fail CI if the coverage is below current percentage