Igetpaidforcodethatworks,notfortests,somyphilosophyistotestaslittleaspossibletoreachagivenlevelofconfidence(Isuspectthislevelofconfidenceishighcomparedtoindustrystandards,butthatcouldjustbehubris).IfIdonttypicallymakeakindofmistake(likesettingthewrongvariablesinaconstructor),Idonttestforit.Idotendtomakesenseoftesterrors,soImextracarefulwhenIhavelogicwithcomplicatedconditionals.Whencodingonateam,Imodifymystrategytocarefullytestcodethatwe,collectively,tendtogetwrong.
Differentpeoplewillhavedifferenttestingstrategiesbasedonthisphilosophy,butthatseemsreasonabletomegiventheimmaturestateofunderstandingofhowtestscanbestfitintotheinnerloopofcoding.Tenortwentyyearsfromnowwelllikelyhaveamoreuniversaltheoryofwhichteststowrite,whichtestsnottowrite,andhowtotellthedifference.Inthemeantime,experimentationseemsinorder
欢迎光临 仓酷云 (http://ckuyun.com/) | Powered by Discuz! X3.2 |