为什么说 “PS:应该不属于结对编程和结对测试吧”
我看过的这本书 《结对编程技术》
http://book.douban.com/subject/1144538/ 好像是有讲到这种案例的
都是XP极限编程的重要方法,在同一场合结合起来用是很容易理解的嘛,要取名字的话,
“TDD Pairing”
Here are the rules:
1. One person writes a test. If it passes, he must pass the keyboard to the other person who gets to write a test.
2. If it fails, he passes the keyboard to the other person and they have to implement the required code to make it pass.
3 .If "the light is green," the person who has the keyboard can choose to perform a refactoring instead of writing a test. In fact, if the implementation given by the other person has some duplication that needs to be removed, they are obligated to do just that. (After which, of course, the other person gets to write a test.)
google "TDD pairing" 你可以找到很多资料