Veze, linkovi
Kompjuter biblioteka
Korpa
Python Testing Cookbook - Second Edition

Python programiranje Python programiranje

Python Testing Cookbook - Second Edition

Autor: Greg L. Turnquist, Bhaskar N. Das
Broj strana: 396
ISBN broj: 9781787122529
Izdavač: PACKT PUBLISHING PACKT PUBLISHING
Godina izdanja: 2018.

                 
Twitter   Facebook   Linkedin   Pinterest   Email
                 
Predlog za prevod

 

What You Will Learn

  • Run test cases from the command line with increased verbosity
  • Write a Nose extension to pick tests based on regular expressions
  • Create testable documentation using doctest
  • Use Selenium to test the Web User Interface
  • Write a testable story with Voidspace Mock and Nose
  • Configure TeamCity to run Python tests on commit
  • Update project-level scripts to provide coverage reports

Book Description

Automated testing is the best way to increase efficiency while reducing the defects of software testing. It helps find bugs in code easily and at an early stage so that they can be tackled efficiently. This book delves into essential testing concepts used in Python to help you build robust and maintainable code.

Python Testing Cookbook begins with a brief introduction to Python's unit testing framework to help you write automated test cases. You will learn how to write suitable test sets for your software and run automated test suites with Nose. You will then work with the unittest.mock library, which allows you to replace the parts of your system that are being tested with mock objects and make assertions about how they have been used. You will also see how to apply Test-driven Development (TDD) and Behavior-driven Development (BDD) and how to eliminate issues caused by TDD. The book explains how to integrate automated tests using Continuous Integration and perform smoke/load testing. It also covers best practices and will help you solve persistent testing issues in Python. The book concludes by helping you understand how doctest works and how Selenium can be used to test code efficiently.

Authors

Greg L. Turnquist

Greg L. Turnquist has worked in the software industry since 1997. He is an active participant in the open source community and has contributed patches to several projects, including MythTV, Spring Security, MediaWiki, and the TestNG Eclipse plugin. As a test-obsessed script junky, he has always sought the right tool for the job. He is a firm believer in agile practices and automated testing. He has developed distributed systems and LAMP-based setups, and he has supported mission-critical systems hosted on various platforms.

After graduating from Auburn University with a master's in computer engineering, Greg started working with the Harris Corporation. He worked on many contracts utilizing many types of technology. In 2006, he created the Spring Python project and went on to write Spring Python 1.1 in 2010. He joined SpringSource, a division of VMware in 2010, as part of its international software development team.

Bhaskar N. Das

Bhaskar N. Das has 8 years' experience in various projects involving application development, maintenance, and support with IBM. He has worked in various technologies and domains including Java, Python, application servers, the cloud, and various database technologies. His domain expertise includes finance and asset management (IT and finance assets). His areas of interest include big data, business finance optimization and scaling, data science, and Machine Learning.

Table of Contents

Chapter 1: Using Unittest to Develop Basic Tests
Chapter 2: Running Automated Test Suites with Nose
Chapter 3: Creating Testable Documentation with doctest
Chapter 4: Testing Customer Stories with Behavior-Driven Development
Chapter 5: High-Level Customer Scenarios with Acceptance Testing
Chapter 6: Integrating Automated Tests with Continuous Integration
Chapter 7: Measuring Your Success with Test Coverage
Chapter 8: Smoke/Load Testing – Testing Major Parts
Chapter 9: Good Test Habits for New and Legacy Systems

 

Komentari

• Ivica nikolic
Bilo bi super imati ovaj prevod

Ostavite komentar Ostavite komentar

 

Preporučujemo

Python razvoj mikroservisa

Python razvoj mikroservisa

Popust cena:
1580.00 rsd

Django 3 kroz primere, prevod III izdanja

Django 3 kroz primere, prevod III izdanja

Popust cena:
2280.00 rsd

Veze, linkovi
Linkedin Twitter Facebook
 
     
 
© Sva prava pridržana, Kompjuter biblioteka, Beograd, Obalskih radnika 4a, Telefon: +381 11 252 0 272