Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在向我们的系统编写一个接口,该接口将允许端到端测试改变服务器的行为,以便在各种自动化测试场景中运行。 此接口仅在测试模式下启用。
像; 鉴于预订服务已关闭当我尝试预订交易然后我看到预订失败消息
我在以前的项目中做过这种事情,但从未见过用于设置这些场景的服务器端测试服务的“好”(简洁、描述性)名称。
到目前为止,我最好的名字是MockInjector、TestSetupInjector、ServerTwiddler。 有没有更标准的名字?
使用的标准术语是Test Hook