?????????????
???????????????? ???????[ 2010/7/14 17:34:57 ] ????????
????д?????
???????????????????????????????????????????????????????????????????壬??????????????????????????????????????????wikipedia.org????????????????????????????顣???μ??????????????http://en.wikipedia.org/wiki/Unit_testing?????
????????????????????????????????
????In computer programming?? unit testing is a software verification and validation method in which a programmer tests if individual units of source code are fit for use. A unit is the smallest testable part of an application. In procedural programming a unit may be an individual function or procedure.
??????????????У??????????????г????????????????嵥????????????????????????????????????????ó????С?????????????????????????????????????????????????
????????????????????????????????????????????????
????The goal of unit testing is to isolate each part of the program and show that the individual parts are correct. A unit test provides a strict?? written contract that the piece of code must satisfy. As a result?? it affords several benefits. Unit tests find problems early in the development cycle.
???????????????????????????С??????????????Щ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????
???????????????????????????????????????裬1. ??????????С??????2. ??????С??????????????
?????????????????
??????????????????????????е???Ρ????????????t???????????п???????????λ??????????
???????????????и???????н????????????????????????????????????????????????????????д????????????????У???????????????
????????????????????????????????????У???????????????????????????
??????????п????????????????????commit????????????????????????????????????????????????й????
???????????????????????
??????????????????????????????????????????????????????飬??????????????????????????????ú?????????????????????????????????????????????????????????????????????????????????????????ò?????????????????????????????????????????????????????????к???????????????????????????????????????????????????????С?????????????????????????????????????????????????????????????????????????????????????????????????????????????Э???????????????????????????????????????????????????????????Щ???
????????????????????????
???????????????????????????????飬???????????????Σ??????????????????????????????????????
????1??????????Σ??????????????????е?????????????????????????
?????????????????Σ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????Windows?????????????????????????Щ????????????????????????????????ε?????????????????????????д???????????????б????????????е??????е???????????????????????????????????????????????????????а??????????????????????????Щ?????????????????????????????????????????????????????????????????????0.8??1.2?????????????顢??????????????1.5??2??????????????????
????2??????????Σ????????ν??е??????????????Щ?????????????????????????????????
??????ν??е????????????滮??????????????????????????????????????????????????????????????????????????????????????????????????????????????????е?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????mock???????????????????????????л???????л????????
??????1???????????Σ??????????????????????????е?????????ν??е????????????д????????????????????
???? ??2????д???????????????commit????????е???????????????????????????????????????????????????????????????????????е??????????????????????д??????????????????????
??????3???????????????μ?????????
??????
???·???
??????????????????
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