-
Notifications
You must be signed in to change notification settings - Fork 1k
adds compute engine logging sample #59
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
Conversation
59986d4 to
e49b01d
Compare
|
Is it worthwhile to add a test? |
|
Yeah, I'll add a mock test |
|
@tmatsuo PTAL |
compute/logging/phpunit.xml
Outdated
| --> | ||
| <phpunit bootstrap="test/bootstrap.php"> | ||
| <testsuites> | ||
| <testsuite name="PHP twilio test"> |
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.
Name: PHP GCE logging test
| </testsuites> | ||
| <logging> | ||
| <log type="coverage-clover" target="../../../build/logs/clover-gce-logging.xml"/> | ||
| </logging> |
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.
add whitelist
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.
I don't think I need to whitelist anything, since there's only index.php, which gets tested.
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.
Sorry for not explaining why. We should mark which files to measure the coverage. Otherwise phpunit thinks it should measure the coverage for everything including under vendor directory and we'll have very low coverage report :)
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.
I noticed there was a 30% decrease in coverage without this
Whitelist has been added!
|
LGTM |
compute/logging/phpunit.xml
Outdated
| </testsuite> | ||
| </testsuites> | ||
| <logging> | ||
| <log type="coverage-clover" target="../../../build/logs/clover-gce-logging.xml"/> |
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.
I think it should be ../../build/logs/clover-gce-logging.xml.
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.
ahh darn, good catch
|
Oh wait. The compute/index.php is not in the list on coveralls. Probably because it uses a wrong clover log file path. |
|
LGTM On Fri, Apr 15, 2016, 1:22 PM Coveralls [email protected] wrote:
|
No description provided.