首页 > 编程知识 正文

java程序设计实用教程第五版电子版(自动生成测试用例)

时间:2023-05-04 06:51:12 阅读:66353 作者:3905

isthereagoodtooltogenerateunittestcasesgivensaya.netorjavaproject, itgeneratesunittestcasesthatwouldcoveranalmost 100 % code coverage.thenumberoftestcasescouldbedirectionaltothecyclomarage herthenestingofloopsandconditionsthehigherthecyclomaticcomplexity )。 wherethehigherthecyclomaticcomplexity, thegreaterthesetoftestcasesaregenerated.I ' mnotexpectingittobefullyfunctional (sayi ' mgoingtobuildtheunitteststsandrunitandrunitatata ftit ts been generated ), butiwouldsaythatitcanhaveatemplatestyleinthetestcasewhereyouaretomodifythecasethatsuitsyourintendedneeeds.butitshouldalso halso haved thodandisgoodenoughtodetectifmockobjectsforunittestingshouldbeusedshouldtherebeanydependencies .haveapropersetupandteteandteandis

For .NET,microsofthaspexwhichwillhopefullygomainstreamfor.net 4.0,alongwithcodecontracts.ihighlyrecommmendwatchingthechechechor

itstrikesmethatthissortofthingisverygoodforverydata-driven classes-parsers etc.Ican ' tsee that I ' dveryoftenstartofwithit

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。