googleapis / googleapis/google-cloud-python

Add tests for generated samples

未關閉
#15,411 1 則留言 0 個 reaction 已指派 1 人 已被 @gkevinzheng 認領 在 GitHub 檢視
api: logging priority: p3 samples type: cleanup
主要語言
Python
星號
5.4k
分支
1.8k
平均合併
2 天 23 小時
30 天內合併 PR
123

描述

One thought: these generated samples aren't covered by tests. Have you considered adding tests for these to catch this kind of issue in the future, like the [other snippets](https://github.com/googleapis/python-logging/tree/c201482c913b5f2eac82359787511a5a92fc3406/samples/snippets)? Smoke tests could be helpful here (i.e. just executing each function and making sure nothing crashes)

There may be a simple way to programmatically load and execute each sample, but if it's bit more complicated we could open a bug for later

_Originally posted by @daniel-sanche in https://github.com/googleapis/python-logging/pull/804#discussion_r1377993742_

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。