| | | Python測試驅動開發(影印版)(英文版) | 該商品所屬分類:計算機/網絡 -> 軟件工程 | 【市場價】 | 776-1124元 | 【優惠價】 | 485-703元 | 【介質】 | book | 【ISBN】 | 9787564159153 | 【折扣說明】 | 一次購物滿999元台幣免運費+贈品 一次購物滿2000元台幣95折+免運費+贈品 一次購物滿3000元台幣92折+免運費+贈品 一次購物滿4000元台幣88折+免運費+贈品
| 【本期贈品】 | ①優質無紡布環保袋,做工棒!②品牌簽字筆 ③品牌手帕紙巾
| |
版本 | 正版全新電子版PDF檔 | 您已选择: | 正版全新 | 溫馨提示:如果有多種選項,請先選擇再點擊加入購物車。*. 電子圖書價格是0.69折,例如了得網價格是100元,電子書pdf的價格則是69元。 *. 購買電子書不支持貨到付款,購買時選擇atm或者超商、PayPal付款。付款後1-24小時內通過郵件傳輸給您。 *. 如果收到的電子書不滿意,可以聯絡我們退款。謝謝。 | | | | 內容介紹 | |
-
出版社:東南大學
-
ISBN:9787564159153
-
作者:(美)珀西瓦爾
-
頁數:463
-
出版日期:2015-09-01
-
印刷日期:2015-09-01
-
包裝:平裝
-
開本:16開
-
版次:1
-
印次:1
-
字數:612千字
-
珀西瓦爾編著的《Python測試驅動開發(影印版 )(英文版)》這本實用指南帶你從頭至尾經歷一個 真實Web應用開發的全過程,展示了Python測試驅動 開發(TDD)的優越性。你將學到如何在應用程序各 部分被構建出來之前就編寫並運行測試,然後開發最 少量的代碼就讓這些測試運行通過。結果得到什麼? 能夠運行的簡潔代碼。 在書中,你將學到Diango、Selenium、git、 iQuery和Mock的基礎知識,另外還有現代Web開發技 巧。如果你準備將自己的Python技術提升到下一個層 次,這本書清楚地展示了測試驅動開發是如何提倡簡 單設計並增進信心。 深入測試驅動開發工作流,包括單元測試/編碼 周期循環和重構 為類和函數使用單元測試,並為瀏覽器內的用戶 交互使用功能測試 學習何時與如何運用mock對像,以及單獨和集成 測試的優缺點 在開發用服務器上測試以及自動化部署 將測試運用到網站集成的第三方插件上去 使用一個持續集成環境來自動運行測試
-
Preface Prerequisites and Assumptions Companion Video Acknowledgments Part I. The Basics of TDD and Django 1. Getting Django Set Up Using a Functional Test Obey the Testing Goat! Do Nothing Until You Have a Test Getting Django Up and Running Starting a Git Repository 2. Extending Our Functional Test Using the unittest Module Using a Functional Test to Scope Out a Minimum Viable App The Python Standard Library's unittest Module Implicit waits Commit 3. Testing a Simple Home Page with Unit Tests Our First Django App, and Our First Unit Test Unit Tests, and How They Differ from Functional Tests Unit Testing in Django Django's MVC, URLs, and View Functions At Last! We Actually Write Some Application Code! urls.py Unit Testing a View The Unit-Test/Code Cycle 4. What Are We Doing with All These Tests? Programming Is like Pulling a Bucket of Water up from a Well Using Selenium to Test User Interactions The "Don't Test Constants" Rule, and Templates to the Rescue Refactoring to Use a Template On Refactoring A Little More of Our Front Page Recap: The TDD Process S. Saving User Input Wiring Up Our Form to Send a POST Request Processing a POST Request on the Server Passing Python Variables to Be Rendered in the Template Three Strikes and Refactor The Django ORM and Our First Model Our First Database Migration The Test Gets Surprisingly Far A New Field Means a New Migration Saving the POST to the Database Redirect After a POST Better Unit Testing Practice: Each Test Should Test One Thing Rendering Items in the Template Creating Our Production Database with migrate 6. Getting to the Minimum Viable Site Ensuring Test Isolation in Functional Tests Running lust the Unit Tests Small Design When Necessary YAGNI! REST Implementing the New Design Using TDD Iterating Towards the New Design Testing Views, Templates, and URLs Together with the Django Test Client A New Test Class A New URL A New View Function A Separate Template for Viewing Lists Another URL and View for Adding List Items A Test Class for New List Creation A URL and View for New List Creation Removing Now-Redundant Code and Tests Pointing Our Forms at the New URL Adjusting Our Models A Foreign Key Relationship Adjusting the Rest of the World to Our New Models Each List Should Have Its Own URL Capturing Parameters from URLs Adjusting new_list to the New World One More View to Handle Adding Items to an Existing List Beware of Greedy Regular Expressions! The Last New URL The Last New View But How to Use That URL in the Form? A Final Refactor Using URL includes Part II. Web Development Sine Qua Nons 7. Prettification: Layout and Styling, and What to Test About It 8. Testing Deployment Using a Staging Site. 9. Automating Deployment with Fabric 10. Input Validation and Test Organisation 11. A Simple Form 12. More Advanced Forms 13. Dipping Our Toes, Very Tentatively, into JavaScript 14. Deploying Our New Code Part III. More Advanced Topics 15. User Authentication, Integrating Third-Party Plugins, and Mocking with JavaScript. 16. Server-Side Authentication and Mocking in Python 17. Test Fixtures, Logging, and Server-Side Debugging 18. Finishing "My Lists": Outside-In TDD 19. Test Isolation, and "Listening to Your Tests". 20. Continuous Inteoration (CI) 21. The Token Social Bit, the Page Pattern, and an Exercise for the Reader 22. Fast Tests, Slow Tests, and Hot Lava.. Obey the Testing Goat! A. PythonAnywhere B. Django Class-Based Views C. Provisioning with Ansible D. Testing Database Migrations E. Behaviour-Driven Development (BDD) F. Cheat Sheet G. What to Do Next H. Bibliography Index
| | | | | |