?????????????????????????????????????????????\??????????????????仹??????????????????????????????????????????TDD?·????????

????TDD?????????????????????????????????????????????????????????????????????????????????????????ж?TDD??6?????????-????-?????

????????????????????????????д??????????????????????????д?????????????pass??????????????????????????

??????????????

?????????????????TDD??????????????????

????1??????????????????????????????????????????

????2????????????????????????????????????????????????Ρ?

????3??????????????TDD??С???????????????????????TDD??????????????

???????????????

????Ps????????????????????????г??????

????1??????????xx???????У??????????????????????????????????????????????????????????

????2????????????????????????е????????????????xxx?????????????д?????????

?????????????????TDD???

????TDD?????????

????TDD???????????????????????????????——???????????????????????????????????????????????

???????????????????У???迪????????????????????????????????????????Ч??????????????????????????????????????????λ????£????????????Σ????????????????????????????xx????????????????????xx???????????XX????????????????????????????QA?????????????£????????????????????????????????????????????????漰??????????????????????????????????????

??????????????????????????????д????case???????TDD??

????TDD?????????д???????

????????????????????????????????????????????????????????app??+service??+dao??????????

???????????????????????????????????

????ps.???????????????????????????????????????漰?????

????eg.

public void testAddProductSuc_WithPrice(){
    want.fail();
}

?????????????????????????Щ??

????size??spuId??productId??shopId???????priceδ????????????????????????????????????????

?????????????

testAddProductSuc_All();
testAddProductSuc_NoPrice();

????????????

testAddProductFail_NoSize();
testAddProductFail_NoSpuId();
testAddProductFail_NoProductId();
testAddProductFail_NoShopId();