This kind of test is also more business-oriented, because they focus on testing external, visible behaviors (so it’s kind of “BDD in code”). You don’t have to think about internal implementation details anymore. In most cases, you don’t even need mocks, it’s enough to use hand-written Test Doubles/Fakes/Stubs (e.g. an in-memory list that simulates a database, fake time provider, etc) (tests with Fakes are much cleaner).
技术普惠:国内文旅正在形成“数字生态”
,推荐阅读旺商聊官方下载获取更多信息
一个有趣的参照来自大洋彼岸的美国品牌Third Love,它与Ubras走了截然相反的道路:
Googleが「公開してOK」と案内していたAPIキーがGeminiの認証キーにもなっているせいで個人情報垂れ流し状態のウェブサイトが大量に存在
Code, Data, Media