Add integration tests
まだ誰も着手していません。
評価
調査の方向性
コミット aff0a13d884ff5dc09bccb6c1ce081a82213bfab の統合テスト設定から始め、ローカル HTTP サーバーを使用する既存のユニットテストと比較してください。先に必要な範囲を定義してから進めてください。完了時には、すべてのレスポンスフィールドをチェックせずに、デフォルトのメディアタイプの変更などの互換性問題を検出する、実際の GitHub API に対するテストスイートになっている必要があります。
索引モデルが issue の本文から書いたものです。
説明
This is an ongoing work item to add integration tests for the entire library. Unlike the existing unit tests that spin up a local HTTP server that mimics certain behavior of the API, these integration tests will call against the live GitHub API. As such, they will likely take a lot longer to execute and will not be run near as often. I've set things up with aff0a13d884ff5dc09bccb6c1ce081a82213bfab and will continue working from there.
I'm not 100% settled yet on how extensive these tests need to be. For example, we don't need to test the value of every field in a response. The biggest goal is to have a test suite that can be run when things like the default media type changes to make sure the library is still working properly. I also have a separate test suite that I'm working on to identify fields in responses that we aren't mapping into our Go structs.
- 主要言語
- Go
- スター
- 11.3k
- フォーク
- 2.5k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 49
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/go-github のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
google/go-github の issue をすべて見る
似ている issue
-
area/dev-productivity area/disaster-recovery area/ipcei kind/enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
kind/bug status/0-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
🤔 refinement needed
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
equinor/radix-operator#1979 ·