全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Integration test, test double, metamorphic testing?

又称: integration test · test double · metamorphic testing

Definition 30.5 University Computer Science — Year 3 · 第 30 章 — Software Engineering: Design, Testing and Maintenance

An integration test checks several modules working together, with their real collaborators, such as a service with its database. A test double is an object that stands in for a collaborator of the code under test: a stub returns fixed answers, a spy also records how it was called, a fake is a working but simplified implementation. Metamorphic testing checks a relation between the outputs for related inputs, such as “sorting a permutation of a list gives the same result”, when no test oracle for a single output is available.

在原文中阅读 →