Test-Driven Development with Python [Kindle Edition]
Author: Harry J. W. Percival | Language: English | ISBN: B00NH1JM8A | Format: PDF, EPUB
Download books file now Download Free Test-Driven Development with Python [Kindle Edition] from with Mediafire Link Download Link
By taking you through the development of a real web application from beginning to end, this hands-on guide demonstrates the practical advantages of test-driven development (TDD) with Python. You’ll learn how to write and run tests before building each part of your app, and then develop the minimum amount of code required to pass those tests. The result? Clean code that works.
In the process, you’ll learn the basics of Django, Selenium, Git, jQuery, and Mock, along with current web development techniques. If you’re ready to take your Python skills to the next level, this book clearly demonstrates how TDD encourages simple designs and inspires confidence.
- Dive into the TDD workflow, including the unit test/code cycle and refactoring
- Use unit tests for classes and functions, and functional tests for user interactions within the browser
- Learn when and how to use mock objects, and the pros and cons of isolated vs. integrated tests
- Test and automate your deployments with a staging server
- Apply tests to the third-party plugins you integrate into your site
- Use a Continuous Integration environment to run your tests automatically
- File Size: 6282 KB
- Print Length: 498 pages
- Simultaneous Device Usage: Unlimited
- Publisher: O'Reilly Media; 1 edition (June 11, 2014)
- Sold by: Amazon Digital Services, Inc.
- Language: English
- ASIN: B00NH1JM8A
- Text-to-Speech: Enabled
- Word Wise: Not Enabled
- Lending: Not Enabled
- Amazon Best Sellers Rank: #46,457 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
- #14 in Kindle Store > Kindle eBooks > Computers & technology > Programming > Python
- #39 in Books > Computers & Technology > Programming > Languages & Tools > Python
- #78 in Books > Computers & Technology > Programming > Software Design, Testing & Engineering > Software Development
This book is a tremendous gift to developers who want to learn TDD and modern development practices in an integrated format.
While neither a Python nor Django developer, I was able to follow the book all of the way through without much difficulty.
Everything in the book follows a hands-on teaching style, blended with thoughtful discussions of its content, with links to many other (in most cases, free) resources.
As other reviewers have noted, there is much more in this book than just a primer on TDD: continuous integration, automated deployments, server setups, coding best-practices, logging, debugging with automated screen captures--to name just a few.
This is the only book I've read so far on TDD that uses a comprehensive and realistic example: a website, with third-party authentication, with client-side JavaScript, with a database. Other books on TDD that I've read cover trivial server-side code in isolation, with much more general discussion, and less step-by-step. Not here!
The first part of the book dives right in with testing from a user's perspective, using Selenium and the goodies built into the Django testing framework. It also goes into more fine-grained unit and integration testing of code, and shows the working relationship between these two types of testing.
The second part of the book covers the basics of JavaScript testing, setting up live servers with real domains, automating deployments, and going more in-depth into the Django framework and website testing and development.
The third part of the book includes integrating a third-party authentication system, mocking in both JavaScript and Python, setting up continuous integration, and even more approaches to test-driving software development.
0 Response to "Test-Driven Development with Python"
Post a Comment
Note: Only a member of this blog may post a comment.