pytest Quick Start Guide
Python'sstandardunittestmoduleisbasedonthexUnitfamilyofframeworks,whichhasitsoriginsinSmalltalkandJava,andtendstobeverbosetouseandnoteasilyextensible.Thepytestframeworkontheotherhandisverysimpletogetstarted,butpowerfulenoughtocovercomplextestingintegrationscenarios,beingconsideredbymanythetruePythonicapproachtotestinginPython.Inthisbook,youwilllearnhowtogetstartedrightawayandgetthemostoutofpytestinyourdailywork?ow,exploringpowerfulmechanismsandpluginstofacilitatemanycommontestingtasks.Youwillalsoseehowtousepytestinexistingunittest-basedtestsuitesandwilllearnsometrickstomakethejumptoapytest-styletestsuitequicklyandeasily.
·3.3萬字