Chúng tôi sẽ bắt đầu với các loại nguyên thủy như số nguyên và các loại đối tượng phổ biến chẳng hạn như các chuỗi và mảng. Chúng tôi sẽ trì hoãn việc điều trị đầy đủ của các đối tượng tùy ý đến chương kế tiếp,chẳng hạn như CallNonvirtualVoidMethod, | bugs Pick a random sampling from the fests that are failing lake a random sample of lilt- Irsts dial an- failing and I lo fix just ihoM-tests. But lx sure it s random don t pick jusi the easy tests to fix. or the trail hard ones. You want to gel a real idea of the work to get things going again. u từ A 5 w ae tkej lũ a ọr. Tv ìẽsbrẠ A w ho u i 9 a rd . So OK we ll work on a bug each. Let s just draw bugs out of a hat and see if we can knock one out as quickly as possible. Then on to the next bug. At the end of the week calculate your bug fix rate I link ill hnw fast ymi and Willi team are knocking nil lings. ind I -null lip with a tnorr confident estimate for how long you think if will take Io fix all the bugs based nil your current fix rate. Bu s -fixed Total buy your entire team ft ed 5 Number of days in the spike test Your daily but f ix rate Buy likely to be f ed per day s jssumin this rate stays steady you are here 401 estimate what s loft What do the spike test results tell you Your tests gave you an idea as to how much ol your code was failing. With the results III your spike test you should have an idea about how long it w ill take to fix the remaining bugs. The number of buạs fixed during the week-lon spike Uli 5 - The number of work dayt in the spike test bujs per day ybur tedm 5 bu5 f X rate for the spike test You can then figure out how long it will take for your team to fix all the bugs ybur bu fl rate The buy left after you fixed some on the spike test 402 Chapter 11 7 days How lon it would take your whole team to fl dll the remaining buy bugs Hmm arc you sure 0 Team will always squash bugs like They did in The spike test How can you have any confidence that you ll fix all the bugs in seven When it comes to bug fixing we really can t be sure When it comes down to it. a spike lest really only gives you a mine accurate estimate than a pure guess. It s not I M accurate and may not even Ik- close. But the spike fest docs give volt quantitative data .