文件名称:
Python Testing_ Beginner’s Guide.pdf
开发工具:
文件大小: 2mb
下载次数: 0
上传时间: 2019-08-18
详细说明: Preface Like any programmer, you need to be able to produce reliable code that conforms to a specification, which means that you need to test your code. In this book, youll learn how to use techniques and Python tools that reduce the effort involved in testing, and at the same time make it more useful—and even fun. You' ;ll learn about several of Pythons automated testing tools, and youll learn about the philosophies and methodologies that they were designed to support, like unit testing and test-driven development. When youre done, youll be able to produce thoroughly tested code faster and more easily than ever before, and youll be able to do it in a way that doesnt distract you from your "real" programming. What this book covers Chapter 1: Testing for Fun and Profit introduces Python test-driven development and various testing methods. Chapter 2: Doctest: The Easiest Testing Tool covers the doctest tool and teaches you how to use it. Chapter 3: Unit Testing with Doctest introduces the ideas of unit testing and test-driven development, and applies doctest to create unit tests. Chapter 4: Breaking Tight Coupling by using Mock Objects covers mock objects and the Python Mocker tool. Chapter 5: When Doctest isnt Enough: Unittest to the Rescue introduces the unittest framework and discusses when it is preferred over doctest. Chapter 6: Running Your Tests: Follow Your Nose introduces the Nose test runner, and discusses project organization. This material is copyright and is licensed for the sole use by Betty Vaughan-Pope on 1st February 2010 2601 S Broadway St, Unit 29, La Porte, , 77571 Preface [ ] Chapter 7: Developing a Test-Driven Project walks through a complete test-driven development process. Chapter 8: Testing Web Application Frontends using Twill applies the knowledge gained from previous chapters to web applications, and introduces the Twill tool. Chapter 9: Integration Testing and System Testing teaches how to build from unit tests to tests of a complete software system. Chapter 10: Other Testing Tools and Techniques introduces code coverage and continuous integration, and teaches how to tie automated testing into version control systems. Appendix: Answers to Pop Quizes contains the answers to all pop quizes, chapter-wise. What you need for this book To use this book, you will need a working Python interpreter, preferably one of the 2.6 version series. Youll also need a source code editor, and occasional access to the internet. You will need to be comfortable enough using your operating systems textual interface—your DOS prompt or command shell—to do basic directory management and to run programs. Who this book is for If you are a Python developer and want to write tests for your applications, this book will get you started and show you the easiest way to learn testing. You need to have sound Python programming knowledge to follow along. An awareness of software testing would be good, but no formal knowledge of testing is expected nor do you need to have any knowledge of the libraries discussed in the book.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
相关搜索: