资源描述:
《Continuous Testing.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ContinuousTestingwithRuby,Rails,andJavaScriptBenRadyRodCoffinThePragmaticBookshelfDallas,Texas•Raleigh,NorthCarolinaManyofthedesignationsusedbymanufacturersandsellerstodistinguishtheirproductsareclaimedastrademarks.Wherethosedesignationsappearinthisbook,andThePragmaticProgrammers,LLCwasawareof
2、atrademarkclaim,thedesignationshavebeenprintedininitialcapitallettersorinallcapitals.ThePragmaticStarterKit,ThePragmaticProgrammer,PragmaticProgramming,PragmaticBookshelf,PragProgandthelinkinggdevicearetrade-marksofThePragmaticProgrammers,LLC.Everyprecautionwastakeninthepreparationofthisbook.H
3、owever,thepublisherassumesnoresponsibilityforerrorsoromissions,orfordamagesthatmayresultfromtheuseofinformation(includingprogramlistings)containedherein.OurPragmaticcourses,workshops,andotherproductscanhelpyouandyourteamcreatebettersoftwareandhavemorefun.Formoreinformation,aswellasthelatestPra
4、gmatictitles,pleasevisitusathttp://pragprog.com.Theteamthatproducedthisbookincludes:JacquelynCarter(editor)PotomacIndexing,LLC(indexer)KimWimpsett(copyeditor)DavidJKelly(typesetter)JanetFurlow(producer)JulietBenda(rights)EllieCallaghan(support)Copyright©2011PragmaticProgrammers,LLC.Allrightsre
5、served.Nopartofthispublicationmaybereproduced,storedinaretrievalsystem,ortransmitted,inanyform,orbyanymeans,electronic,mechanical,photocopying,recording,orotherwise,withoutthepriorconsentofthepublisher.PrintedintheUnitedStatesofAmerica.ISBN-13:978-1-934356-70-8Printedonacid-freepaper.Bookversi
6、on:P1.0—June2011ContentsAcknowledgments..........viiPreface.............ix2.1ExploringtheChaptersx2.2WhoThisBookIsForxi2.3WorkingtheExamplesxii2.4OnlineResourcesxii1.WhyTestContinuously?.........11.1WhatIsContinuousTesting?21.2BeyondAutomatedTests21.3EnhancingTestDrivenDevelopment41.4Continuou
7、sTestingandContinuousIntegration41.5LearningtoTestContinuously6PartI—RubyandAutotest2.CreatingYourEnvironment........112.1GettingStartedwithAutotest112.2CreatingaPotentTestSuitewithFIRE162.3WritingInformativeTests172.4WritingFastTests23