??????????
???????????? ???????[ 2013/12/24 16:57:21 ] ??????????????? ???????
????1. ??????????С??? ??????????? ?κδ??? Check-in ??????e????в?????????????????. ????????????????????????????????.
????2. ????????????????/????????????????????????е?? ??й??????????????????????????. ??????????????????????????????????.
????3. ????????????????????????????????????? ????????????????????????????????????????????????????.
????4. ????????????????е??????и?????????? ???????????????и?????? ??????Щ????δ?????.
????5. ?????????????????????????????????? Check-in ?????????????????? ??????д??? Check-in ???в?????????????????.
????6. ???????????????????????? (Class) ?????. ??? "??????" ???????????? "??????"?? ????? "??????" ????????????????????. ????????????????????????????????????????????? ????????????Ч???????. ?????????? (???: ??????/?????????????) ????????????? ????????????????? ?????????ú????.
????7. ????????????????????????в???. ??????? "??????" ???????? "??????" ???????????? ?????????????? ???????????? ??л??????????????????????Ч????м?飬 ?????? "??????" ??????????????.??????????????? Hello?? world! :void testDefaultConstruction(){Foo foo = new Foo();assertNotNull(foo);}
????8. ?????????????????????????????????????? ?????????????????????????? ???????????е???????.
????9. Keep tests close to the class being tested[???: ??δ????ù??? ??????????????????????? ???? C++ ?? Python ?????????????????????ж????????? ????????????? src ??????? tests ???? ???????/??????????? ???? Test ??. ????????????????????????? ?????????? ??????????????????????????????.]If the class to test is Foo the test class should be called FooTest (not TestFoo) and kept in the same package (directory) as Foo. Keeping test classes in separate directory trees makes them harder to access and maintain.Make sure the build environment is configured so that the test classes doesn't make its way into production libraries or executables.
????10. ??????????????????????????????????? "??????" ????????????? ?????????????????????. ?????????????? test[what]?? ???? testSaveAs()?? testAddListener()?? testDeleteProperty() ??.
????11. ???????н????????????????? ????????? API ??????н??в???. ?Щ??????????????????????г???? ???????????????? ???ò????÷?????????????. ???????г?????????????????? ????????????????????????з?????. ??????????????????????? ?????????????.
????12. ??????????????????????????? ?????????????漲??????. ???跨?????????? (???: ??? tear it apart?? ???? "???????"?? ????????????? ?????? ???????????).
????13. ????????????????????????????д????? ?????????????????Щ????????.
????14. ??麯???????????????????????????????????????? ?Щ??鷽???? ????? setter ?? getter ?????????. ????????г???????????????麯??:??? ???????. ???????????в???????.???в???????? ??????????Щ???????????.????????????????? ???????????? ????? "???????" ???????:private double weight_;private double x_?? y_;public void setWeight(int weight){ weight = weight_; // error}public double getX(){ return x_;}public double getY(){ return x_; // error}????????????з???. ?????麯??????????.
????15. ??????и??????????? ??и????? ?? ???????????. ???????????????????????и?????. ?????????????? ?Щ ?????????????Ч???. ?????и????????? ???????????????????. ??? ?????????????????? (?????????????? 0%).??????1??з???:void setLength(double length);???? setLength(1.0) ???????? ????и?????. ??? ?????????????? ?ж???? double ????????????????????????Σ? ????????????????????. ??????????????????.
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11