• Complain

Harry J. W. Percival - Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript

Here you can read online Harry J. W. Percival - Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2017, publisher: O’Reilly Media, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Harry J. W. Percival Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript
  • Book:
    Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript
  • Author:
  • Publisher:
    O’Reilly Media
  • Genre:
  • Year:
    2017
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

By taking you through the development of a real web application from beginning to end, the second edition of this hands-on guide demonstrates the practical advantages of test-driven development (TDD) with Python. Youll 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, youll learn the basics of Django, Selenium, Git, jQuery, and Mock, along with current web development techniques. If youre ready to take your Python skills to the next level, this bookupdated for Python 3.6clearly 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
  • Run tests automatically by using a Continuous Integration environment
  • Use TDD to build a REST API with a front-end Ajax interface

Harry J. W. Percival: author's other books


Who wrote Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript? Find out the surname, the name of the author of the book and a list of all author's works by series.

Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Praise for Test-Driven Development with Python

In this book, Harry takes us on an adventure of discovery with Python and testing. Its an excellent book, fun to read and full of vital information. It has my highest recommendations for anyone interested in testing with Python, learning Django, or wanting to use Selenium. Testing is essential for developer sanity and its a notoriously difficult field, full of trade-offs. Harry does a fantastic job of holding our attention whilst exploring real-world testing practices.

Michael Foord, Python Core Developer and Maintainer of unittest

This book is far more than an introduction to test-driven developmentits a complete best-practices crash course, from start to finish, into modern web application development with Python. Every web developer needs this book.

Kenneth Reitz, Fellow at Python Software Foundation

Harrys book is what we wish existed when we were learning Django. At a pace thats achievable and yet delightfully challenging, it provides excellent instruction for Django and various test practices. The material on Selenium alone makes the book worth purchasing, but theres so much more!

Daniel and Audrey Roy Greenfeld, authors of Two Scoops of Django (Two Scoops Press)

Test-Driven Development with Python

by Harry J.W. Percival

Copyright 2017 Harry Percival. All rights reserved.

Printed in the United States of America.

Published by OReilly Media, Inc. , 1005 Gravenstein Highway North, Sebastopol, CA 95472.

OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (http://oreilly.com/safari). For more information, contact our corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com .

  • Editor: Nan Barber
  • Production Editor: Kristen Brown
  • Copyeditor: Kim Cofer
  • Proofreader: Rachel Monaghan
  • Indexer: Judith McConville
  • Interior Designer: David Futato
  • Cover Designer: Karen Montgomery
  • Illustrator: Rebecca Demarest
  • August 2017: Second Edition
Revision History for the Second Edition
  • 2017-08-02: First Release

See http://oreilly.com/catalog/errata.csp?isbn=9781491958704 for release details.

The OReilly logo is a registered trademark of OReilly Media, Inc. Test-Driven Development with Python, the cover image, and related trade dress are trademarks of OReilly Media, Inc.

While the publisher and the author have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the author disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/or rights.

978-1-491-95870-4

[LSI]

Preface

This book is my attempt to share with the world the journey Ive taken fromhacking to software engineering. Its mainly about testing, but theres alot more to it, as youll soon see.

I want to thank you for reading it.

If you bought a copy, then Im very grateful. If youre reading the freeonline version, then Im still grateful that youve decided its worthspending some of your time on. Who knows, perhaps once you get to the end,youll decide its good enough to buy a real copy for yourself or for a friend.

.

I hope youll enjoy reading this book as much as I enjoyed writing it.

Why I Wrote a Book About Test-Driven Development

Who are you, why are you writing this book, and why should Iread it? I hear you ask.

Im still quite early on in my programming career. They say that in anydiscipline, you go from apprentice, to journeyman, and eventually, sometimes,on to master. Id say that Imat besta journeyman programmer. But Iwas lucky enough, early on in my career, to fall in with a bunch of TDDfanatics, and it made such a big impact on my programming that Im burning toshare it with everyone. You might say I have the enthusiasm of a recentconvert, and the learning experience is still a recent memory for me, so I hopeI can still empathise with beginners.

When I first learned Python (from Mark Pilgrims excellent), I came across the concept of TDD, and thought Yes.I can definitely see the sense in that. Perhaps you had a similarreaction when you first heard about TDD? It sounds like a really sensibleapproach, a really good habit to get intolike regularly flossing yourteeth.

Then came my first big project, and you can guess what happenedthere was aclient, there were deadlines, there was lots to do, and any good intentionsabout TDD went straight out of the window.

And, actually, it was fine. I was fine.

At first.

At first I knew I didnt really need TDD because it was a small website, and Icould easily test whether things worked by just manually checking it out. Clickthis link here, choose that drop-down item there, and this should happen.Easy. This whole writing tests thing sounded like it would have taken ages,and besides, I fancied myself, from the full height of my three weeks of adultcoding experience, as being a pretty good programmer. I could handle it. Easy.

Then came the fearful goddess Complexity. She soon showed me the limits of myexperience.

The project grew. Parts of the system started to depend on other parts. I didmy best to follow good principles like DRY (Dont Repeat Yourself), but thatjust led to some pretty dangerous territory. Soon I was playing with multipleinheritance. Class hierarchies eight levels deep. eval statements.

I became scared of making changes to my code. I was no longer sure whatdepended on what, and what might happen if I changed this code over here, ohgosh, I think that bit over there inherits from itno, it doesnt, itsoverriden. Oh, but it depends on that class variable. Right, well, as long asI override the override it should be fine. Ill just checkbut checking wasgetting much harder. There were lots of sections to the site now, and clickingthrough them all manually was starting to get impractical. Better to leavewell enough alone, forget refactoring, just make do.

Soon I had a hideous, ugly mess of code. New development became painful.

Not too long after this, I was lucky enough to get a job with a company calledResolver Systems (now PythonAnywhere), whereExtreme Programming (XP) was the norm. They introduced me to rigorous TDD.

Although my previous experience had certainly opened my mind to the possiblebenefits of automated testing, I still dragged my feet at every stage. Imean, testing in general might be a good idea, but really? All these tests?Some of them seem like a total waste of time What? Functional testsas well as unit tests? Come on, thats overdoing it! And this TDD test/minimal-code-change/test cycle? This is just silly! We dont need all these babysteps! Come on, we can see what the right answer is, why dont we just skip tothe end?

Believe me, I second-guessed every rule, I suggested every shortcut, I demandedjustifications for every seemingly pointless aspect of TDD, and I came outseeing the wisdom of it all. Ive lost count of the number of times Ivethought Thanks, tests, as a functional test uncovers a regression we wouldnever have predicted, or a unit test saves me from making a really silly logicerror. Psychologically, its made development a much less stressfulprocess. It produces code thats a pleasure to work with.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript»

Look at similar books to Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript»

Discussion, reviews of the book Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.