getsentry / getsentry/sentry-java

Replace calls to external API in e2e tests with something hosted locally on CI

未關閉
#4,765 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Java Tests
主要語言
Kotlin
星號
1.4k
分支
478
平均合併
3 天 4 小時
30 天內合併 PR
72

描述

### Description

We're currently calling `GET https://jsonplaceholder.typicode.com/todos/1` and others during e2e tests.
We've just seen a flake where this caused e2e tests to fail.
We should host something on CI for testing locally to not have flaky tests. Similar to the mock Sentry server.

For samples I'd recommend keeping what we currently have and only override for e2e test execution so customers who want to try the sample don't have to spin up another service.

貢獻指南

開啟貢獻指南

研究方向

先找出呼叫 jsonplaceholder.typicode.com 的 e2e 測試設定,並了解測試所用的 mock Sentry server 是如何託管的。在保留範例目前外部 API 行為的同時,為 e2e 執行提供 CI 本機端的等效方案;完成的標準是這些測試不再依賴外部服務,也不會在該服務無法使用時失敗。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
kotlin
領域
ci-cd, infrastructure, testing
Issue 類型
重構
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
35/100

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

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