This chapter surveys the state of the art in code coverage from the perspective of test automation. Our aim is to describe and motivate the three most popular classes of glass box test coverage models, which are: control flow, logic and data flow coverage. We take a fairly rigorous approach to code coverage models. Thus, for each class, we will give precise definitions of specific examples, some of which are widely known while others deserve to be better known by test engineers. Our main goal is to present coverage models that represent the state of the art. These should stimulate thought regarding best practice, and indicate future directions for test process improvement.
翻译:本章从测试自动化的角度对代码覆盖的先进程度进行考察。我们的目的是描述和激励三种最受欢迎的玻璃盒测试覆盖模式,即:控制流、逻辑和数据流覆盖。我们对代码覆盖模式采取了相当严格的方法。因此,我们将为每一类给出具体实例的精确定义,其中一些实例广为人知,而另一些实例则值得测试工程师更好地了解。我们的主要目标是展示代表最新技术的覆盖模式。这些应当激发对最佳做法的思考,并指明测试过程改进的未来方向。