To get the free app, enter your mobile phone number.
Python Testing: Beginner's Guide
Use the Amazon App to scan ISBNs and compare prices.
Excel 2016 For Dummies Video Training
Discover what Excel can do for you with self-paced video lessons from For Dummies. Learn more.
Frequently Bought Together
Customers Who Bought This Item Also Bought
If you buy a new print edition of this book (or purchased one in the past), you can buy the Kindle edition for only $2.99 (Save 88%). Print edition purchase must be sold by Amazon. Learn more.
For thousands of qualifying books, your past, present, and future print-edition purchases now lets you buy the Kindle edition for $2.99 or less. (Textbooks available for $9.99 or less.)
Top Customer Reviews
for x in range(1):
for y in range(2):
The book gives short introduction about the topic, but jumps right into the action in the first chapters. One thing that I liked is that the book does not have a introduction to Python section, like many other books that are supposed to be about an specific topic, so you don't waste space and time. Also, PTBG is unique among Python-related books, as there are not many published options about this subject. Of course there's ample material online about test driven development, but if you need a good (introductory) reference book about it, this is the book to buy.
It covers the following frameworks, each in its own chapter.
-Doctest (the most simple and basic python tester, part of standard library)
-Unittest (more advanced testing framework easier to automate
-Mocker (using mock objects as stubs to isolate code that isn't by its nature isolated. This one was a complete revelation to me and worth the price of the book alone)
-Nose (test automation suite - a definite time-saver).
Plus several chapters that are a range of reused examples that gradually works up the testing stack from unit testing through integration testing to system testing, in bite-sized chunks and with a - to me - agreeably informal and motivating style.
It isn't perfect. Two minuses:
1. Python is a very dynamic area, and it is python 2.6 centric. 2.7 and 3.1 are already out there, and understandably not covered.
2. Check for the source code to avoid massive frustration. I was reading it electronically so cut-and-pasted, but the e-publisher had done some automatic formatting to remove leading blanks, insert lines for readability. Python, of course, needs those leading blanks. And doctest, too, treats blank lines as significant.
I have been actively using test-driven development methodology for a few years already so I am probably not exactly in the intended target market of the book. I still managed to pick a few valuable nuggets of information from it, though. As stated in the book description, it is essential that you have already basic knowledge of Python. It's definitely needed.
The book uses extremely practical approach in the expense of theory. It walks the reader through various coding tasks with clear prose. There were times when I felt that the examples were a little bit overwhelming. This should not be much of a problem as long as you are prepared to spend the time on them. In addition to the walkthroughs the book contains some reference information and useful quizzes that can be used to check your knowledge.
It would have been useful to have some background information on testing (ie. history, taxonomy of tools and approaches) as appendices. The book covers the basic testing methodology well but I would have appreciated at least some discussion on advanced approaches (ie. BDD, ATDD, refactoring, fuzz testing, etc.).
All things considered if you decide to pick up the book, it might be a good idea to look into additional material focusing on theory of testing, testing patterns and agile methodologies for enhanced understanding of the subject matter.
I'm a professional programmer, and I use python as well as Django (one of the large python web frameworks) at work and for fun. I picked up this book immediately when I saw it on amazon because I've read tons of documents, articles, and books on test driven development, but have never had the pleasure of reading through a python-specific book for testing.
This book is written for developers who:
- Are comfortable with python programming.
- Are familiar with the concept of testing.
- Are interested in using industry standard best practices for development.
If you meet these requirements, read on.
The author, Daniel Arbuckle, takes a practical approach to testing. He starts with the basics, by converting human written program specifications into simple python doctests.
Then he discusses unit tests, mock objects, and continuous building tools.
Throughout the book, you will learn about each form of test, why it is useful, how it should be used and why. The author walks through several programs from start to finish, clearly breaking them down piece by piece, and explaining how they work, and why.
There is no shortage of examples.
I absolutely LOVED the writing style used throughout the book. It is brisk, conversational, and you can tell that the author has a lot of passion for the topic.
There are a lot of great examples used throughout the book. They are all clearly explained.Read more ›
Most Recent Customer Reviews
This book is almost ok, but there are some problems. Chapter 2 tries to illustrate testing using
no less than an AVL tree. Read more
I'm not a developer but since the book name is "Beginners guide" author could spend a little bit more time to explain what has happened on pages of this book.Published on May 25, 2014 by Alex
in my opinion, "good practice" of unit test wasn't applied.
for instance, naming of unit test was meaningless. Read more
I've recently had the pleasure of reading "Python Testing: An easy and convenient approach to testing your python projects" from Packt Publishing. Read morePublished on April 20, 2010 by RandomUser2221