Slide 9
Slide 9 text
T1.2 Study 2: Classification of White-Box Tests
Motivation
• Question: Are these tests correct?
◦ OK: correct w.r.t specification
◦ WRONG: contradicts specification
• Not considered in empirical studies
• Issues caused in practice:
◦ Real efficiency can be worse
◦ Can be an effort-intensive task
[TestMethod]
public void CalculateSumTest284() {
int[] ints = new int[5] { 4,5,6,7,8 };
int i = CalculateSum(0, 0, ints);
Assert.AreEqual(0, i);
}
[TestMethod]
public void CalculateSumTest647() {
int[] ints = new int[5] { 4,5,6,7,8 };
int i = CalculateSum(0, 4, ints);
Assert.AreEqual(15, i);
}
9
Evaluating and Improving White-Box Test Generation
Goal: How do developers who use test generator tools perform in deciding
whether the generated tests encode expected or unexpected behavior?