全部书籍

专业

应用 关于 Coach 登录 开始阅读

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

Computer Science · 术语表

什么是 Property-based test, shrinking?

又称: property-based test · shrinking

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

A property-based test states a property that must hold for all inputs of a kind, and checks it on many inputs generated at random. Shrinking is the search, after a failing input is found, for a smaller input that still fails, so that the reported counterexample is as simple as possible.

在原文中阅读 →