知识卡片
生成式测试探索输入
生成式测试按生成规则探索大量输入,寻找人工示例遗漏的边界,并检验性质或结果。原书“检查每个可能值”的表述过强,对一般无限或巨大输入域并不成立。生成规则、判定标准与失败复现机制决定价值,不能以随机次数代替正确性论证。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- Putting Evolutionary Architecture into Practice · 查看原书依据
A practice common in many functional programming communities gaining wider acceptance is the idea of generative testing. Traditional unit tests include assertions of correct outcomes within each test case. However, with generative testing, developers run a large number of tests and capture the outcomes, then use statistical analysis on the results to look for anomalies. For example, consider the mundane case of boundary-checking ranges of
参考来源
- 位置:《Building Evolutionary Architectures Automated Software Governance, 2nd Edition》第09章《Putting Evolutionary Architecture into Practice》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Evolutionary Architectures Automated Software Governance, 2nd Edition/_epub-src/OEBPS/ch09.html;段落定位:Traditional unit tests include assertions of correct outcomes)
- 结论依据:原文对“生成式测试探索输入”的定义或案例,支撑“生成式测试按生成规则探索大量输入,寻找人工示例遗漏的边界,并检验性质或结果”的归纳。据其上下文,原书“检查每个可能值”的表述过强,对一般无限或巨大输入域并不成立。
- 原始内容:A practice common in many functional programming communities gaining wider acceptance is the idea of generative testing. Traditional unit tests include assertions of correct outcomes within each test case. However, with generative testing, developers run a large number of tests and capture the outcomes, then use statistical analysis on the results to look for anomalies. For example, consider the mundane case of boundary-checking ranges of