Test-Driven Development with Python: Early Release

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

O’Reilly Media, 2013– 54 p. – ISBN: 1449367798, 9781449367794
With Early Release ebooks, you get books in their earliest form — the author's raw and unedited content as he or she writes — so you can take advantage of these technologies long before the official release of these titlesYou'll also receive updates when significant changes are made, new chapters as they're written, and the final ebook bundleThis version of the early release has 4/27 chs and an appendix.
"Test-Driven Development with Python" focuses on web development, with some coverage of JavaScript (inescapable for any web programmer).
This book uses a concrete example - the development of a web site, from scratch - to teach the TDD metholology, and how it applies to web programming, from the basics of database integration and javascript, going via browser-automation tools like Selenium, to advanced (and trendy) topics like NoSQL, websockets and Async programming.
Contents:
Preface.
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
Extending our FT using the unittest module.
Using the FT to scope out a minimum viable app
The Python standard library’s unittest module
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
What are we doing with all these tests?.
A moment’s reflection - what are we up to?
Using Selenium to test user interactions
The Don’t test constants rule, and templates to the rescue
On refactoring
A little more of our front page
A Python Anywhere.
Bibliography

Author(s): Percival H.

Language: English
Commentary: 1102999
Tags: Библиотека;Компьютерная литература;Python