Menu
Sign In Search Podcasts Charts People & Topics Add Podcast API Pricing
Podcast Image

リファクタリングとともに生きるラジオ

#67 テストダブル③ フェイクオブジェクトつくる君をつくるパターン

24 Mar 2025

Description

■ トピック lacolacoとテストダブル フェイクオブジェクトのファクトリ関数を作る テストケースごとに依存するパラメータをすべて明示する どのテストが何に依存しているのかをはっきりさせたい HTTPクライアントと差し替え・スパイのしやすさ そもそもテストでHTTP通信を発生させるかどうか 本物を使いたい気持ちとツール依存度とのせめぎあい HTTPレスポンスが欲しいのか、データが欲しいのか ユニットテストを書き続けられる状態を保ちたい テストフレームワークの柔軟さに甘やかされる ikuma-tさんおたよりありがとうございました■ 参考リンク GitHub - faker-js/faker Mock Service Worker - API mocking library for browser and Node.js Testing Library■ おたよりフォームhttps://forms.gle/RYUG7T4ctmF7Srf36■ X(Twitter) https://twitter.com/refactoradio■ Bluesky https://bsky.app/profile/refactoradio.comハッシュタグは #リファラジ です。

Audio
Featured in this Episode

No persons identified in this episode.

Transcription

This episode hasn't been transcribed yet

Help us prioritize this episode for transcription by upvoting it.

0 upvotes
🗳️ Sign in to Upvote

Popular episodes get transcribed faster

Comments

There are no comments yet.

Please log in to write the first comment.