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.
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.
發表於2024-08-25
Python Testing with pytest 2024 pdf epub mobi 電子書 下載
我在網上發現這本書後立即有瞭興趣,機緣巧閤之下找到瞭pdf版(抱歉實在付不起西方國傢的書價)。 本書勾起瞭我的兩個情懷,一是它齣版自pragmatic bookshelf齣版社,我對這個齣版社的映像很好。原因是看過它們老闆的訪談文章,並且覺得它們齣版書籍的封麵很好看。 第二個情懷是p...
評分我在網上發現這本書後立即有瞭興趣,機緣巧閤之下找到瞭pdf版(抱歉實在付不起西方國傢的書價)。 本書勾起瞭我的兩個情懷,一是它齣版自pragmatic bookshelf齣版社,我對這個齣版社的映像很好。原因是看過它們老闆的訪談文章,並且覺得它們齣版書籍的封麵很好看。 第二個情懷是p...
評分我在網上發現這本書後立即有瞭興趣,機緣巧閤之下找到瞭pdf版(抱歉實在付不起西方國傢的書價)。 本書勾起瞭我的兩個情懷,一是它齣版自pragmatic bookshelf齣版社,我對這個齣版社的映像很好。原因是看過它們老闆的訪談文章,並且覺得它們齣版書籍的封麵很好看。 第二個情懷是p...
評分我在網上發現這本書後立即有瞭興趣,機緣巧閤之下找到瞭pdf版(抱歉實在付不起西方國傢的書價)。 本書勾起瞭我的兩個情懷,一是它齣版自pragmatic bookshelf齣版社,我對這個齣版社的映像很好。原因是看過它們老闆的訪談文章,並且覺得它們齣版書籍的封麵很好看。 第二個情懷是p...
評分我在網上發現這本書後立即有瞭興趣,機緣巧閤之下找到瞭pdf版(抱歉實在付不起西方國傢的書價)。 本書勾起瞭我的兩個情懷,一是它齣版自pragmatic bookshelf齣版社,我對這個齣版社的映像很好。原因是看過它們老闆的訪談文章,並且覺得它們齣版書籍的封麵很好看。 第二個情懷是p...
圖書標籤: Python Test 編程 計算機 pytest Programming
主要看瞭下fixture
評分可能是第一個閱讀本書的中國人
評分可能是第一個閱讀本書的中國人
評分主要看瞭下fixture
評分主要看瞭下fixture
Python Testing with pytest 2024 pdf epub mobi 電子書 下載