Asking a Teammate to Help Write Unit Tests
Speakers
You
あなた
Aisha
機械学習エンジニア(バングラデシュ)
この場面について
新機能のユニットテストがうまく書けず、海外の同僚にペアで手伝ってもらえないか相談する場面。
Summary (JP)
あなたは新しい機能のコードを書き終えましたが、ユニットテストの書き方に自信がありません。バングラデシュにいる機械学習エンジニアのAishaに、ビデオ通話で30分ほどペアを組んでもらえないかお願いします。Aishaは快く引き受け、まずは一番簡単なケースから書き始めようと提案します。二人は時間を決めて、通話をつなぐことにします。
会話
文をクリックすると、その部分から読み上げが始まります。
You:
Aisha:
You:
Aisha:
You:
Aisha:
You:
Aisha:
You:
Aisha:
You:
Aisha:
You:
Aisha:
Vocabulary
unit test
Meaning: ユニットテスト。関数など小さい単位の動作を確認するテスト。
Example: I need to write a unit test for this function.
pair with someone
Meaning: 誰かとペアを組んで一緒に作業する。
Example: Can you pair with me for thirty minutes?
edge case
Meaning: エッジケース。めったに起きない特殊な入力や状況。
Example: We should also test the edge cases.
walk through
Meaning: 順を追って説明する、一緒に見ていく。
Example: Let me walk you through my code first.
cover
Meaning: (テストが)ある部分の動作を確認している、カバーしている。
Example: These tests cover the main path.
mock
Meaning: モック。テストのために本物の代わりに使う偽のオブジェクト。
Example: We can mock the API call here.
flaky
Meaning: 結果が安定しない、たまに失敗する(テストなどが)。
Example: This test is a bit flaky.
green
Meaning: テストが全部通っている状態(緑)。
Example: All the tests are green now.