圖書標籤: Python Test 編程 計算機 pytest Programming
发表于2024-11-07
Python Testing with pytest pdf epub mobi txt 電子書 下載 2024
For Python-based projects, pytest is the undeniable choice to test your code if you’re looking for a full-featured, API-independent, flexible, and extensible testing framework. With a full-bodied fixture model that is unmatched in any other tool, the pytest framework gives you powerful features such as assert rewriting and plug-in capability—with no boilerplate code.
With simple step-by-step instructions and sample code, this book gets you up to speed quickly on this easy-to-learn and robust tool. Write short, maintainable tests that elegantly express what you’re testing. Add powerful testing features and still speed up test times by distributing tests across multiple processors and running tests in parallel. Use the built-in assert statements to reduce false test failures by separating setup and test failures. Test error conditions and corner cases with expected exception testing, and use one test to run many test cases with parameterized testing. Extend pytest with plugins, connect it to continuous integration systems, and use it in tandem with tox, mock, coverage, unittest, and doctest.
Write simple, maintainable tests that elegantly express what you’re testing and why.
Brian Okken is a lead software engineer with two decades of R&D experience developing test and measurement instruments. He hosts the Test & Code podcast and co-hosts the Python Bytes podcast.
不推薦,還是官方文檔好些
評分不推薦,還是官方文檔好些
評分不推薦,還是官方文檔好些
評分不推薦,還是官方文檔好些
評分主要看瞭下fixture
我在网上发现这本书后立即有了兴趣,机缘巧合之下找到了pdf版(抱歉实在付不起西方国家的书价)。 本书勾起了我的两个情怀,一是它出版自pragmatic bookshelf出版社,我对这个出版社的映像很好。原因是看过它们老板的访谈文章,并且觉得它们出版书籍的封面很好看。 第二个情怀是p...
評分我在网上发现这本书后立即有了兴趣,机缘巧合之下找到了pdf版(抱歉实在付不起西方国家的书价)。 本书勾起了我的两个情怀,一是它出版自pragmatic bookshelf出版社,我对这个出版社的映像很好。原因是看过它们老板的访谈文章,并且觉得它们出版书籍的封面很好看。 第二个情怀是p...
評分我在网上发现这本书后立即有了兴趣,机缘巧合之下找到了pdf版(抱歉实在付不起西方国家的书价)。 本书勾起了我的两个情怀,一是它出版自pragmatic bookshelf出版社,我对这个出版社的映像很好。原因是看过它们老板的访谈文章,并且觉得它们出版书籍的封面很好看。 第二个情怀是p...
評分我在网上发现这本书后立即有了兴趣,机缘巧合之下找到了pdf版(抱歉实在付不起西方国家的书价)。 本书勾起了我的两个情怀,一是它出版自pragmatic bookshelf出版社,我对这个出版社的映像很好。原因是看过它们老板的访谈文章,并且觉得它们出版书籍的封面很好看。 第二个情怀是p...
評分我在网上发现这本书后立即有了兴趣,机缘巧合之下找到了pdf版(抱歉实在付不起西方国家的书价)。 本书勾起了我的两个情怀,一是它出版自pragmatic bookshelf出版社,我对这个出版社的映像很好。原因是看过它们老板的访谈文章,并且觉得它们出版书籍的封面很好看。 第二个情怀是p...
Python Testing with pytest pdf epub mobi txt 電子書 下載 2024